Ruby gem to encode/decode Base16 as per RFC 4648
Add this line to your application's Gemfile:
gem 'base16'
And then execute:
$ bundle
Or install it yourself as:
$ gem install base16
require 'base16'
text = 'Hello world :-)'
encoded = Base16.encode16(text)
decoded = Base16.decode16(encoded)
puts decoded
- Fork it ( https://github.com/sspreitzer/base16/fork )
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create a new Pull Request