Implementation of Douglas Crockford's base32 encoding scheme in Go.
Switch branches/tags
Nothing to show
Clone or download
Pull request Compare This branch is even with richardlehane:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.

Implementation of Douglas Crockford's Base32 encoding.

Example usage:

i, _ := crock32.Decode("a1j3")
s := crock32.Encode(i)

Crock32 is useful for "expressing numbers in a form that can be conveniently and accurately transmitted between humans and computer systems".

See for details.

Note: crock32 differs from Crockford in its use of lower-case letters when encoding (decode works for both cases). To change, use: crock32.SetDigits("0123456789ABCDEFGHJKMNPQRSTVWXYZ")

Install with go get