Skip to content
A library which provides base32 decoding and encoding.
Branch: master
Clone or download
stesla Merge pull request #10 from pwnall/fix_warnings
Fix Ruby warning: instance variable @table not initialized
Latest commit a65a6cd Mar 28, 2016
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
config bump version and copyrights Apr 1, 2011
lib Fix Ruby warning: instance variable @table not initialized. Mar 27, 2016
test
.gitignore Add Gemfile Nov 2, 2013
.travis.yml Add Travis support and Travis/CodeClimate badges to README Nov 2, 2013
CHANGELOG.md
Gemfile Add Gemfile Nov 2, 2013
LICENSE Rename COPYING to LICENSE Nov 2, 2013
README.md
Rakefile Fix test task file listing Jan 3, 2014
base32.gemspec Update gemspec file to include project license Apr 27, 2015

README.md

base32

For Version: 0.1.3

This package contains base32, a Ruby extension for encoding and decoding in base32 per RFC 3548.

Download

The latest version of base32 can be found at

http://rubyforge.org/frs/?group_id=3938

Installation

Normal Installation

You can install base32 with the following command from the distribution directory.

rake install

Gem Installation

Download and install base32 with the following command.

gem install --remote base32

Running the Test Suite

If you want to run the automated tests for base32, issue this command from the distribution directory.

rake test:all

References

Simple Example

  require "base32"

  encoded = Base32.encode("chunky bacon!")  #==> "MNUHK3TLPEQGEYLDN5XCC==="
  decoded = Base32.decode(encoded)          #==> "chunky bacon!"

  puts %Q{"#{decoded}" is "#{encoded}" in base32}
You can’t perform that action at this time.