Sha256: eff5ecc8df2fd636acc5fcdf6ff915ad3151281561f1bd27419ea0b49d65d8bb
Contents?: true
Size: 517 Bytes
Versions: 4
Compression:
Stored size: 517 Bytes
Contents
require File.expand_path("helper", File.dirname(__FILE__)) test "encrypt" do encrypted = Shield::Password.encrypt("password") assert Shield::Password.check("password", encrypted) end test "with custom 64 character salt" do encrypted = Shield::Password.encrypt("password", "A" * 64) assert Shield::Password.check("password", encrypted) end test "nil password doesn't raise" do ex = nil begin encrypted = Shield::Password.encrypt(nil) rescue Exception => e ex = e end assert nil == ex end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
shield-0.0.3 | test/password_hash_test.rb |
shield-0.0.2 | test/password_hash_test.rb |
shield-0.0.1 | test/password_hash_test.rb |
shield-0.0.0 | test/password_hash_test.rb |