mirror of
https://github.com/Babibubebon/social.metadata.moe.git
synced 2024-09-22 16:54:19 +09:00
Fix atom leak in password digest functionality
The value here gets passesd to :crypto.pbkdf2_hmac and it expects one of these atoms: :sha | :sha224 | :sha256 | :sha384 | :sha512 so it will always exist
This commit is contained in:
parent
79d69ce72a
commit
86e6d395d9
1 changed files with 1 additions and 1 deletions
|
@ -28,7 +28,7 @@ def verify_pass(password, hash) do
|
|||
|
||||
iterations = String.to_integer(iterations)
|
||||
|
||||
digest = String.to_atom(digest)
|
||||
digest = String.to_existing_atom(digest)
|
||||
|
||||
binary_hash =
|
||||
KeyGenerator.generate(password, salt, digest: digest, iterations: iterations, length: 64)
|
||||
|
|
Loading…
Reference in a new issue