Skip to content

@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

NameType
strstring

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

NameType
dataUint8Array

Returns

string

Defined in

packages/core/dist/support/base.d.ts:21