For Ruby 1.9.x.
Not the Crockford one.
See tools.ietf.org/html/rfc4648#section-6
gem in rfc-base32
require 'rfc-base32' RFC.encode32 'hello world' #=> 'NBSWY3DPEB3W64TMMQAAAAAA======' RFC.decode32 'NBSWY3DPEB3W64TMMQAAAAAA======' #=> 'hello world'