feat: remove test_unsafe

This commit is contained in:
Jussi 2024-11-09 15:23:09 +02:00
parent abb3eab559
commit d2839286ce
7 changed files with 8 additions and 29 deletions

View file

@ -16,13 +16,6 @@ defmodule Argon2Test do
assert String.starts_with?(hash, "$argon2i$v=19$m=65540,t=3,p=4$")
end
test "hashes a password with test/development config" do
config = "test_unsafe"
hash = Argon2.hash_password("password123", config)
assert is_binary(hash)
assert String.starts_with?(hash, "$argon2i$v=19$m=1024,t=1,p=1")
end
test "generates different hashes for the same password" do
hash1 = Argon2.hash_password("same_password123")
hash2 = Argon2.hash_password("same_password123")