@aldea/sdk / Exports / base64
Namespace: base64
Interface for encoding two and from base64.
Table of contents
Functions
Functions
decode
▸ decode(str): Uint8Array
Decodes the given base64 string to bytes.
Parameters
| Name | Type |
|---|---|
str | string |
Returns
Uint8Array
Defined in
packages/core/dist/support/base.d.ts:25
encode
▸ encode(data): string
Encodes the given bytes as a base64 string.
Parameters
| Name | Type |
|---|---|
data | Uint8Array |
Returns
string
Defined in
packages/core/dist/support/base.d.ts:21