1base64(3)                  Erlang Module Definition                  base64(3)
2
3
4

NAME

6       base64 - Provides base64 encode and decode, see
7           RFC 2045.
8

DESCRIPTION

10       Provides base64 encode and decode, see RFC 2045.
11

DATA TYPES

13       base64_alphabet() = 65..90 | 97..122 | 48..57 | 43 | 47 | 61
14
15              Base 64 Encoding alphabet, see RFC 4648.
16
17       base64_string() = [base64_alphabet()]
18
19              Base 64 encoded string.
20
21       base64_binary() = binary()
22
23              Base 64 encoded binary.
24
25       byte_string() = [byte()]
26
27              Arbitrary sequences of octets.
28

EXPORTS

30       decode(Base64) -> Data
31
32       decode_to_string(Base64) -> DataString
33
34       mime_decode(Base64) -> Data
35
36       mime_decode_to_string(Base64) -> DataString
37
38              Types:
39
40                 Base64 = base64_string() | base64_binary()
41                 Data = binary()
42                 DataString = byte_string()
43
44              Decodes a base64-encoded string to plain ASCII. See RFC 4648.
45
46              mime_decode/1  and  mime_decode_to_string/1  strip  away illegal
47              characters, while decode/1  and  decode_to_string/1  only  strip
48              away whitespace characters.
49
50       encode(Data) -> Base64
51
52       encode_to_string(Data) -> Base64String
53
54              Types:
55
56                 Data = byte_string() | binary()
57                 Base64 = base64_binary()
58                 Base64String = base64_string()
59
60              Encodes  a  plain  ASCII  string  into base64. The result is 33%
61              larger than the data.
62
63
64
65Ericsson AB                       stdlib 4.2                         base64(3)
Impressum