UNPKG

@smithy/util-hex-encoding

Version:

Converts binary buffers to and from lowercase hexadecimal encoding

13 lines (12 loc) 385 B
/** * Converts a hexadecimal encoded string to a Uint8Array of bytes. * * @param encoded The hexadecimal encoded string */ export declare function fromHex(encoded: string): Uint8Array; /** * Converts a Uint8Array of binary data to a hexadecimal encoded string. * * @param bytes The binary data to encode */ export declare function toHex(bytes: Uint8Array): string;