Methods
decode(text) → {Uint8Array}
Decode a Base64 encoded string into a byte array.
Parameters:
Name | Type | Description |
---|---|---|
text |
string | String to be decoded |
- Source:
Returns:
Byte array of decoded data.
- Type
- Uint8Array
encode(data) → {string}
Encode a byte array into a Base64 encoded string.
Parameters:
Name | Type | Description |
---|---|---|
data |
Uint8Array | Byte array to be encoded |
- Source:
Returns:
String of encoded data.
- Type
- string