Skip to content
This repository has been archived by the owner on Aug 28, 2019. It is now read-only.

Commit

Permalink
Add pbkdf2-ruby to Travis CI custom Gemfile. Update README and CLI fo…
Browse files Browse the repository at this point in the history
…r new syntax.
  • Loading branch information
grempe committed Dec 9, 2013
1 parent c741f8e commit b137315
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,8 @@ Or install it yourself as:
# create a random secret (returns the secret)
c1.secret = SecretSharing::Shamir::Secret.new

# (or create a fixed secret of your choice by passing in an OpenSSL::BN object)
c1.secret = SecretSharing::Shamir::Secret.new(OpenSSL::BN.new('123456789'))
# (or create a fixed secret of your choice by passing in an OpenSSL::BN object in the :secret arg)
c1.secret = SecretSharing::Shamir::Secret.new(:secret => OpenSSL::BN.new('123456789'))

# show secret
puts c1.secret
Expand Down
2 changes: 1 addition & 1 deletion bin/secretsharing
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ if choices[:action] == :encode
@c = SecretSharing::Shamir::Container.new(choices[:secret_n], choices[:secret_k])

if choices[:secret_type] == :fixed
@c.secret = SecretSharing::Shamir::Secret.new(OpenSSL::BN.new(choices[:secret_password].to_s))
@c.secret = SecretSharing::Shamir::Secret.new(:secret => OpenSSL::BN.new(choices[:secret_password].to_s))
else
@c.secret = SecretSharing::Shamir::Secret.new
end
Expand Down
2 changes: 2 additions & 0 deletions gemfiles/Gemfile.ci
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,5 @@ source "https://rubygems.org"

gem 'rake'
gem 'minitest'
gem 'highline'
gem 'pbkdf2-ruby'

0 comments on commit b137315

Please sign in to comment.