base64

Implements base 64 encode and decode, see RFC2045.

Implements base 64 encode and decode, see RFC2045.

A binary() with ASCII characters in the range 1 to 255.

Functions


encode/1

encode_to_string/1

Encodes a plain ASCII string into base64. The result will be 33% larger than the data.

decode/1

decode_to_string/1

mime_decode/1

mime_decode_to_string/1

Decodes a base64 encoded string to plain ASCII. See RFC4648. mime_decode/1 and mime_decode_to_string/1 strips away illegal characters, while decode/1 and decode_to_string/1 only strips away whitespace characters.

View Functions