Class CryptographicBuffer

Index

Methods

Methods

public static compare(object1: IBuffer, object2: IBuffer): boolean

Parameters

Returns

boolean

public static convertBinaryToString(encoding: BinaryStringEncoding, buffer: IBuffer): string

Parameters

Returns

string

public static convertStringToBinary(value: string, encoding: BinaryStringEncoding): IBuffer

Parameters

Returns

IBuffer

public static copyToByteArray(buffer: IBuffer): Uint8Array

Parameters

Returns

Uint8Array

public static createFromByteArray(value: Uint8Array): IBuffer

Parameters

  • value: Uint8Array

Returns

IBuffer

public static decodeFromBase64String(value: string): IBuffer

Parameters

  • value: string

Returns

IBuffer

public static decodeFromHexString(value: string): IBuffer

Parameters

  • value: string

Returns

IBuffer

public static encodeToBase64String(buffer: IBuffer): string

Parameters

Returns

string

public static encodeToHexString(buffer: IBuffer): string

Parameters

Returns

string

public static generateRandom(length: number): IBuffer

Parameters

  • length: number

Returns

IBuffer

public static generateRandomNumber(): number

Returns

number