Sha256: d05e3163bc7f1d8e63ec78a1a4dd3ece2c979a56ac65e1ded1901f2ec56840d5
Contents?: true
Size: 815 Bytes
Versions: 13
Compression:
Stored size: 815 Bytes
Contents
require 'spec_helper' describe Rmega::Crypto do describe '#prepare_key' do it 'returns the expected value' do data = [1684081408, -1313687523, 845282884, -1735274811] result = [1380895471, 1656741118, 372674858, 886637722] described_class.prepare_key(data).should == result end end describe '#prepare_key_pw' do it 'returns the expected value' do password = "my kingdom 4 a horse" result = [-24267049, 354638668, -845953520, 1348163508] described_class.prepare_key_pw(password).should == result end end describe '#stringhash' do it 'returns the expected value' do string = 'sjobs@apple.com' key = [-812846736, -655070268, -844240819, 1006009750] described_class.stringhash(key, string).should == 'snWuwnlz45w' end end end
Version data entries
13 entries across 13 versions & 1 rubygems