Codex32
This library is Codex32 ruby implementation.
Installation
Add this line to your application's Gemfile:
gem 'codex32'
And then execute:
$ bundle install
Or install it yourself as:
$ gem install codex32
Usage
require 'codex32'
share = Codex32.parse("ms10testsxxxxxxxxxxxxxxxxxxxxxxxxxx4nzvca9cmczlw")
share.data
share1 = Codex32.parse("MS12NAMEA320ZYXWVUTSRQPNMLKJHGFEDCAXRPP870HKKQRM")
share2 = Codex32.parse("MS12NAMECACDEFGHJKLMNPQRSTUVWXYZ023FTR2GDZMPY6PN")
secret = Codex32.generate_share([share1, share2], Codex32::SECRET_INDEX)
secret.data
share3 = Codex32.generate_share([share1, share2], "d")
share3.to_s