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

decode/1

-spec decode(<<_:_*32>>) -> binary().

Equivalent to decode(Bin, []).

decode/2

-spec decode(<<_:_*32>>, proplists:proplist()) -> binary().

Encode a binary into base 32.

Options:

  • hex: whether decode the input as hexadecimal encoding. Defaults to false.

encode/1

-spec encode(binary()) -> <<_:_*32>>.

Equivalent to encode(Bin, []).

encode/2

-spec encode(binary(), proplists:proplist()) -> <<_:_*32>>.

Encode a binary into base 32.

Options:

  • hex: whether to use hexadecimal encoding. Defaults to false.
  • lower: whether to use lowercase encoding. Defaults to false.
  • nopad: whether to skip padding. Defaults to false.