mirror of
https://github.com/discourse/discourse.git
synced 2025-09-05 08:59:27 +08:00
PBKDF2 gem is trouble, removing and hand coding for now
This commit is contained in:
parent
f8e04a5c48
commit
8f56a09e82
5 changed files with 50 additions and 4 deletions
9
spec/components/pbkdf2_spec.rb
Normal file
9
spec/components/pbkdf2_spec.rb
Normal file
|
@ -0,0 +1,9 @@
|
|||
require 'pbkdf2'
|
||||
|
||||
describe Pbkdf2 do
|
||||
# trivial test to ensure this does not regress during extraction
|
||||
it "hashes stuff correctly" do
|
||||
Pbkdf2.hash_password('test', 'abcd', 100).should == "0313a6aca54dd4c5d82a699a8a0f0ffb0191b4ef62414b8d9dbc11c0c5ac04da"
|
||||
Pbkdf2.hash_password('test', 'abcd', 101).should == "c7a7b2891bf8e6f82d08cf8d83824edcf6c7c6bacb6a741f38e21fc7977bd20f"
|
||||
end
|
||||
end
|
Loading…
Add table
Add a link
Reference in a new issue