yabase/base64/urlsafe
Values
pub fn decode(
input: String,
) -> Result(BitArray, encoding.CodecError)
Decode a URL-safe Base64 string to a BitArray.
Per RFC 4648 section 3.3, non-alphabet characters (including
whitespace, CR/LF, and other punctuation) are rejected. The
alphabet check runs before the length check so the caller sees
InvalidCharacter rather than InvalidLength whenever the real
fault is an out-of-alphabet byte.