From 95fcd722943eff110febe2625f5a2118c34c6112 Mon Sep 17 00:00:00 2001 From: Jérémy Zurcher Date: Sat, 6 Aug 2011 00:00:07 +0200 Subject: add JCryption::digest and specs --- spec/jcryption_spec.rb | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'spec') diff --git a/spec/jcryption_spec.rb b/spec/jcryption_spec.rb index ce1d174..85901de 100644 --- a/spec/jcryption_spec.rb +++ b/spec/jcryption_spec.rb @@ -15,6 +15,10 @@ describe JCryption do h['passwd'].should eql "my_password" h['timestamp'].should eql "1252937955" end + it 'should digest salted passwd' do + d,s = JCryption::digest 'mylovelypasswd' + JCryption::digest('mylovelypasswd',s)[0].should == d + end end end # -- cgit v1.2.3