Base64 wrapper API.
Authors: Alexander Færøy (ahf@0x90.dk
).
This module contains a base64 API that allows us to encode and decode binaries without the ordinary Base64 padding.
base64_encoded() = binary()
decode/1 | |
encode/1 | |
valid/1 | Check if a given binary is valid Base64. |
decode(Encoded) -> {ok, Decoded} | {error, Reason}
Encoded = base64_encoded()
Decoded = binary()
Reason = term()
encode(Data) -> Encoded
Data = binary()
Encoded = base64_encoded()
valid(Data) -> boolean()
Data = binary() | string()
Check if a given binary is valid Base64.