Encodes bytes as RFC 4648 base32 without padding.
NATS uses unpadded uppercase base32 for every nkey string; this is the inverse of fromBase32.
The bytes to encode.
The base32 string (uppercase, no = padding).
=
1.0.0
import { toBase32 } from 'edgeport/nats';const s = toBase32(new Uint8Array([0, 1, 2])); Copy
import { toBase32 } from 'edgeport/nats';const s = toBase32(new Uint8Array([0, 1, 2]));
Encodes bytes as RFC 4648 base32 without padding.
NATS uses unpadded uppercase base32 for every nkey string; this is the inverse of fromBase32.