yabase/base32/rfc4648
Values
pub fn decode(
input: String,
) -> Result(BitArray, encoding.CodecError)
Decode a Base32 string (with or without padding) to a BitArray.
Non-alphabet characters (whitespace, CR/LF, punctuation outside
A-Z, 2-7, and =) are rejected with InvalidCharacter
carrying the offending byte and its position. The alphabet check
runs before the length check so the caller does not see a
misleading InvalidLength when the real fault is an
out-of-alphabet byte.