Skip to main content

base32Decode

@webda/core


Function: base32Decode()

base32Decode(s): Buffer

Defined in: packages/core/src/utils/totp.ts:57

Decode an RFC 4648 Base32 string to a Buffer

Parameters​

s​

string

Base32 string (padding, whitespace, and hyphens ignored, case-insensitive)

Returns​

Buffer

Decoded buffer