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 CR/LF) are rejected.

pub fn encode(data: BitArray) -> String

Encode a BitArray to URL-safe Base64 with padding.

Search Document