table of contents
other versions
- wheezy 1:15.b.1-dfsg-4+deb7u1
- wheezy-backports 1:17.3-dfsg-4~bpo70+1
- jessie 1:17.3-dfsg-4+deb8u1
- jessie-backports 1:19.2.1+dfsg-2~bpo8+1
- testing 1:19.2.1+dfsg-2
- unstable 1:19.2.1+dfsg-2
- experimental 1:19.3.1+dfsg-1
base64(3erl) | Erlang Module Definition | base64(3erl) |
NAME¶
base64 - Implements base 64 encode and decode, see RFC2045.DESCRIPTION¶
Implements base 64 encode and decode, see RFC2045.DATA TYPES¶
ascii_string() = [1..255]ascii_binary() = binary()
A binary() with ASCII characters in the range 1 to 255.
EXPORTS¶
encode(Data) -> Base64
encode_to_string(Data) -> Base64String
Types:
Data = ascii_string() |
ascii_binary()
Base64 = ascii_binary()
Base64String = ascii_string()
Encodes a plain ASCII string into base64. The result will be 33% larger than the
data.
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()
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.
stdlib 2.2 | Ericsson AB |