#decode #serialization #codec

base31

Base31 encoding and decoding, useful to represent large integers in a short, case-insensitive, hard-to-misread format

1 unstable release

0.1.0 Oct 26, 2022

#2179 in Encoding

Custom license

5KB
63 lines

About

Implements Base31 encoding and decoding, which is useful to represent large integers in a short, case-insensitive, alphanumeric format.

The difference to Base36 is that in Base31 certain characters that are often misread (0, 1, i, I, l, L, o, 0) are not used.

Motivation

  1. I used kmanley's excellent base31 golang lib for a while now to generate readable serial numbers
  2. ported the library to rust in process of learning rust

License

MIT

Dependencies

~0.7–1.2MB
~25K SLoC