Oslo

decodeBase32()

Deprecated - Use base32 instead.

Decodes base32 strings. This does not check the length and ignores padding. Use encodeBase32() to encode into base32 strings.

Definition

function decodeBase32(encoded: string): Uint8Array;

Parameters

  • encoded

Example

import { decodeBase32 } from "oslo/encoding";

const data = decodeBase32(encoded);
const text = new TextDecoder().decode(data);