From: Christopher Coté Date: Sun, 5 Jan 2025 20:26:18 +0000 (-0500) Subject: fix password hashing function X-Git-Url: http://git.entropealabs.com/?a=commitdiff_plain;h=fdd0962a43ccff2d7e6282529c328c0fbaaf851a;p=wampex.git fix password hashing function --- diff --git a/lib/crypto.ex b/lib/crypto.ex index 7731f67..97132ad 100644 --- a/lib/crypto.ex +++ b/lib/crypto.ex @@ -10,8 +10,8 @@ defmodule Wampex.Crypto do end def pbkdf2(secret, salt, iterations, keylen) do - secret - |> Pbkdf2.Base.hash_password(salt, rounds: iterations, length: keylen) + :sha256 + |> :crypto.pbkdf2_hmac(secret, salt, iterations, keylen) |> Base.encode64() end