1base64(3) Erlang Module Definition base64(3)
2
3
4
6 base64 - Provides base64 encode and decode, see
7 RFC 2045.
8
10 Provides base64 encode and decode, see RFC 2045.
11
13 ascii_string() = [1..255]
14
15 ascii_binary() = binary()
16
17 A binary() with ASCII characters in the range 1 to 255.
18
20 decode(Base64) -> Data
21
22 decode_to_string(Base64) -> DataString
23
24 mime_decode(Base64) -> Data
25
26 mime_decode_to_string(Base64) -> DataString
27
28 Types:
29
30 Base64 = ascii_string() | ascii_binary()
31 Data = ascii_binary()
32 DataString = ascii_string()
33
34 Decodes a base64-encoded string to plain ASCII. See RFC 4648.
35
36 mime_decode/1 and mime_decode_to_string/1 strip away illegal
37 characters, while decode/1 and decode_to_string/1 only strip
38 away whitespace characters.
39
40 encode(Data) -> Base64
41
42 encode_to_string(Data) -> Base64String
43
44 Types:
45
46 Data = ascii_string() | ascii_binary()
47 Base64 = ascii_binary()
48 Base64String = ascii_string()
49
50 Encodes a plain ASCII string into base64. The result is 33%
51 larger than the data.
52
53
54
55Ericsson AB stdlib 3.14.2.1 base64(3)