base64_alphabet() =
65..90 | 97..122 | 48..57 | 43 | 47 | 45 | 95 | 61
65..90 | 97..122 | 48..57 | 43 | 47 | 45 | 95 | 61
Base 64 Encoding alphabet, see RFC 4648.
Provides base64 encode and decode, see RFC 2045.
Base 64 Encoding alphabet, see RFC 4648.
Customises the behaviour of the encode and decode functions. Default value if omitted entirely or partially is #{mode => standard, padding => true}.
Base 64 encoded string.
Base 64 encoded binary.
Arbitrary sequences of octets.
Decodes a base64 string encoded using the standard alphabet according to RFC 4648 Section 4 to plain ASCII.
mime_decode/1 and mime_decode_to_string/1 strip away illegal characters, while decode/1 and decode_to_string/1 only strip away whitespace characters.
Checks the correct number of = padding characters at the end of the encoded string.
Decodes a base64 string encoded using the alphabet indicated by the mode option to plain ASCII.
mime_decode/2 and mime_decode_to_string/2 strip away illegal characters, while decode/2 and decode_to_string/2 only strip away whitespace characters.
The mode option can be one of the following:
The padding option can be one of the following:
Encodes a plain ASCII string into base64 using the standard alphabet according to RFC 4648 Section 4. The result is 33% larger than the data.
Always appends correct number of = padding characters to the encoded string.
Encodes a plain ASCII string into base64 using the alphabet indicated by the mode option. The result is 33% larger than the data.
The mode option can be one of the following:
The padding option can be one of the following: