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