Sha256: df94f5d99dfbf060c9770f15dff41ec35b3c5efb3283a86b2fb66e9fea8f07f9
Contents?: true
Size: 659 Bytes
Versions: 3
Compression:
Stored size: 659 Bytes
Contents
# encoding: binary require "spec_helper" RSpec.describe RbNaCl::PasswordHash::SCrypt do let(:reference_password) { vector :scrypt_password } let(:reference_salt) { vector :scrypt_salt } let(:reference_opslimit) { RbNaCl::TEST_VECTORS[:scrypt_opslimit] } let(:reference_memlimit) { RbNaCl::TEST_VECTORS[:scrypt_memlimit] } let(:reference_digest) { vector :scrypt_digest } it "calculates the correct digest for a reference password/salt" do digest = RbNaCl::PasswordHash.scrypt( reference_password, reference_salt, reference_opslimit, reference_memlimit ) expect(digest).to eq reference_digest end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
rbnacl-3.4.0 | spec/rbnacl/password_hash/scrypt_spec.rb |
rbnacl-3.3.0 | spec/rbnacl/password_hash/scrypt_spec.rb |
rbnacl-3.2.0 | spec/rbnacl/password_hash/scrypt_spec.rb |