base32.encode

Encodes bytes as a base-32 string.

The alphabet is ABCDEFGHIJKLMNOPQRSTUVWXYZ234567.

Syntax

encode(bytes)

Parameters

Return value

A base32-encoded string.

Example

base32.encode(new Uint8Array([1, 2, 3, 255]))
"AEBAH7Y"