Pow v0.1.0-alpha.5 Pow.Ecto.Schema.Password.Pbkdf2 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

Link to this function compare(left, right) View Source
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
generate(binary(), binary(), integer(), integer(), atom()) :: binary()

Returns a derived key suitable for use.