Module base32

Module base32 

Source
Expand description

Base32 encoding and decoding Base32 encoding as specified by RFC4648 Optional padding is the = character.

Constantsยง

ENCODE_STD ๐Ÿ”’
Standard Base32 alphabet.
STD_INV_ALPHABET ๐Ÿ”’

Functionsยง

decode
Tries to decode a base32 string into a byte vector. Returns None if something fails.
encode
Encode a byte slice with the given base32 alphabet into a base32 string.