View Source base32 (base32 v0.1.1)
Base32 encoding and decoding
Summary
Functions
Equivalent to decode(Bin, [])
.
Encode a binary into base 32.
Equivalent to encode(Bin, [])
.
Encode a binary into base 32.
Functions
-spec decode(<<_:_*32>>) -> binary().
Equivalent to decode(Bin, [])
.
-spec decode(<<_:_*32>>, proplists:proplist()) -> binary().
Encode a binary into base 32.
Options:
hex
: whether decode the input as hexadecimal encoding. Defaults tofalse
.
-spec encode(binary()) -> <<_:_*32>>.
Equivalent to encode(Bin, [])
.
-spec encode(binary(), proplists:proplist()) -> <<_:_*32>>.
Encode a binary into base 32.
Options:
hex
: whether to use hexadecimal encoding. Defaults tofalse
.lower
: whether to use lowercase encoding. Defaults tofalse
.nopad
: whether to skip padding. Defaults tofalse
.