erlang / 25.0 / lib / stdlib-4.0.1 / doc / html / base64.html /

base64

Provides base64 encode and decode, see RFC 2045.

Provides base64 encode and decode, see RFC 2045.

Base 64 Encoding alphabet, see RFC 4648.

Base 64 encoded binary.

Arbitrary sequences of octets.

decode(Base64) -> Data

decode_to_string(Base64) -> DataString

mime_decode(Base64) -> Data

mime_decode_to_string(Base64) -> DataString

Types

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

Encodes a plain ASCII string into base64. The result is 33% larger than the data.

© 2010–2022 Ericsson AB
Licensed under the Apache License, Version 2.0.