UNPKG

@ctrl/ts-base32

Version:

Base32 encoder/decoder with support for multiple variants

11 lines (10 loc) 429 B
type Variant = 'RFC3548' | 'RFC4648' | 'RFC4648-HEX' | 'Crockford'; export declare function base32Encode(input: Uint8Array, variant?: Variant, options?: Partial<{ padding: boolean; }>): string; export declare function base32Decode(input: string, variant?: Variant): Uint8Array; /** * Turn a string of hexadecimal characters into an Uint8Array */ export declare function hexToUint8Array(hex: string): Uint8Array; export {};