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

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

Summary

Functions

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

Returns a derived key suitable for use.

Functions

@spec 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
@spec generate(binary(), binary(), integer(), integer(), atom()) :: binary()

Returns a derived key suitable for use.