1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50
|
= base32
{<img src="https://travis-ci.org/stesla/base32.png" />}[https://travis-ci.org/stesla/base32]
{<img src="https://codeclimate.com/github/stesla/base32.png" />}[https://codeclimate.com/github/stesla/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
* RFC 3548: http://www.faqs.org/rfcs/rfc3548.html
== Simple Example
require "base32"
encoded = Base32.encode("chunky bacon!") #==> "MNUHK3TLPEQGEYLDN5XCC==="
decoded = Base32.decode(encoded) #==> "chunky bacon!"
puts %Q{"#{decoded}" is "#{encoded}" in base32}
|