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 2 years ago
.github/workflows Typo in command 2 years ago
bin Initial release 2 years ago
lib Initial release 2 years ago
test Initial release 2 years ago
.gitignore Add a few make tasks 2 years ago
.travis.yml Initial release 2 years ago
Gemfile Initial release 2 years ago
LICENSE-APACHE Initial release 2 years ago
LICENSE-MIT Initial release 2 years ago
MAKE.md Add a few make tasks 2 years ago
Makefile Add a few make tasks 2 years ago
README.md Add badges 2 years ago
Rakefile Initial release 2 years ago
base24.gemspec Update rake 2 years 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.