An encoder/decoder for base24 binary-to-text encoding for Ruby.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
Nicolas Goy 215ab75291 Update rake 1 year ago
.github/workflows Typo in command 1 year ago
bin Initial release 1 year ago
lib Initial release 1 year ago
test Initial release 1 year ago
.gitignore Add a few make tasks 1 year ago
.travis.yml Initial release 1 year ago
Gemfile Initial release 1 year ago
LICENSE-APACHE Initial release 1 year ago
LICENSE-MIT Initial release 1 year ago
MAKE.md Add a few make tasks 1 year ago
Makefile Add a few make tasks 1 year ago
README.md Add badges 1 year ago
Rakefile Initial release 1 year ago
base24.gemspec Update rake 1 year ago

README.md

Build CI License Version

Base24

An encoder/decoder for base24 binary-to-text encoding for Ruby.

Installation

Add this line to your application's Gemfile:

gem 'base24'

And then execute:

$ bundle

Or install it yourself as:

$ gem install base24

Usage

# Encode some bytes (bytes are strings)
bytes = Random.new.bytes(4)
str = Base24.encode24(bytes)
decoded_bytes = Base24.decode24(str)

decoded_bytes == bytes # is true

Base24.encode24([0x88, 0x55, 0x33, 0x11].pack('C*')) == "5YEATXA" # is true

License

Licensed under either of

at your option.

Contribution

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.