decodeBase32()

Decodes a base32 encoded string into a byte array based on RFC 4648 ยง6. The string must be canonical and include padding. This method is case-insensitive and the string can be encoded either with lower case or upper case letters. Throws an Error if the encoding is invalid.

Definition

function decodeBase32(encoded: string): Uint8Array;

Parameters

  • encoded