Skip to content
An encoder/decoder for base24 binary-to-text encoding for Ruby.
Ruby Makefile Shell
Branch: master
Clone or download

Latest commit

Fetching latest commit…
Cannot retrieve the latest commit at this time.

Files

Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.github/workflows
bin
lib
test
.gitignore
.travis.yml
Gemfile
LICENSE-APACHE
LICENSE-MIT
MAKE.md
Makefile
README.md
Rakefile
base24.gemspec

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.

You can’t perform that action at this time.