Base31_encoder is a project mainly written in ..., based on the MIT license.
A ruby gem to encode/decode integers to and from base31
This is a small class library, used to display base 10 integers as an easy to read base31 number. This was library was created as part of a bigger project, where a human-readable uid was required.
Requirements for the encoder:
Sample usage:
base10 = 12345 obj = Base31encoder.new(base_length=5) base31 = obj.int_to_base31($base10num) # base31 = "00DV7"