Class to help with base32 Encoding/Decoding using RFC4648.
▸ Static
decode(base32
): Uint8Array
Convert the base 32 string to a byte array.
Throws
If the input string contains a character not in the Base32 alphabet.
Name | Type | Description |
---|---|---|
base32 |
string |
The base32 string to convert. |
Uint8Array
The byte array.
▸ Static
encode(bytes
): string
Convert a byte array to base 32.
Name | Type | Description |
---|---|---|
bytes |
Uint8Array |
The byte array to convert. |
string
The data as base32 string.