Project

base32

0.84
No release in over 3 years
Low commit activity in last 3 years
Ruby extension for base32 encoding and decoding
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

 Project Readme

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}