Pow.Ecto.Schema.Password.Pbkdf2 (Pow v1.0.25) View Source

The Pbkdf2 hash generation code is pulled from Plug.Crypto.KeyGenerator and is under Apache 2 license.

Link to this section Summary

Functions

Compares the two binaries in constant-time to avoid timing attacks.

Returns a derived key suitable for use.

Link to this section Functions

Specs

compare(binary(), binary()) :: boolean()

Compares the two binaries in constant-time to avoid timing attacks.

Link to this function

generate(secret, salt, iterations, length, digest)

View Source

Specs

generate(binary(), binary(), integer(), integer(), atom()) :: binary()

Returns a derived key suitable for use.