Fast Base64 encoding and decoding for Bytes.
fromBytes encodes Bytes into a Base64 String.toBytes decodes a Base64 String into Bytes, with validation.toBytesUnsafe decodes a Base64 String into Bytes, without validation.Decode a Base64 string to Bytes, returning Nothing if the input
contains invalid characters or has an impossible length (e.g. 1 mod 4).
toBytes "Zm9v"
|> Maybe.map Bytes.width
--> Just 3
toBytes "not valid!!"
--> Nothing
Encode
Bytesto a Base64 string.