table of contents
other versions
- buster 1:21.2.6+dfsg-1
- testing 1:23.2.6+dfsg-1
- unstable 1:23.2.6+dfsg-1
- experimental 1:24.0.5+dfsg-1
other sections
base64(3erl) | Erlang Module Definition | base64(3erl) |
NAME¶
base64 - Provides base64 encode and decode, see RFC 2045.DESCRIPTION¶
Provides base64 encode and decode, see RFC 2045.DATA TYPES¶
ascii_string() = [1..255]
ascii_binary() = binary()
A binary() with ASCII characters in the range 1 to 255.
EXPORTS¶
decode(Base64) -> Data
decode_to_string(Base64) -> DataString
mime_decode(Base64) -> Data
mime_decode_to_string(Base64) -> DataString
Types:
Base64 = ascii_string() | ascii_binary()
Data = ascii_binary()
DataString = ascii_string()
Data = ascii_binary()
DataString = ascii_string()
Decodes a base64-encoded string to plain ASCII. See RFC 4648.
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.
encode(Data) -> Base64
encode_to_string(Data) -> Base64String
Types:
Data = ascii_string() | ascii_binary()
Base64 = ascii_binary()
Base64String = ascii_string()
Base64 = ascii_binary()
Base64String = ascii_string()
Encodes a plain ASCII string into base64. The result is 33% larger than the data.
stdlib 3.7.1 | Ericsson AB |