Base32Crockford
An alternate base32 encoding as described by Douglas Crockford at: https://www.crockford.com/wrmg/base32.html
It is used for expressing integer numbers in a form that can be conveniently and accurately transmitted between humans and computer systems.
The encoding is designed to:
- Be human and machine readable
- Be compact
- Be error resistant
- Be pronounceable
Installation
The package can be installed as:
Add exiban to your list of dependencies in
mix.exs
:def deps do [{:base32_crockford, "~> 0.1.0"}] end
Run
mix deps.get
in your console to fetch from Hex
Usage
iex> Base32Crockford.encode(1_000_000_000)
"XSNJG0"
iex> Base32Crockford.decode("XSNJG0")
{:ok, 1000000000}
Documentation
Hosted on http://hexdocs.pm/base32_crockford/readme.html
Author
Vladimir Zhukov
Base32Crockford is released under the MIT License.