Hora v1.0.0 Hora.Adapter.Pbkdf2

Adapter for managing passwords using pbkdf2_sha512.

Note that you will need to add comeonin as a dependency to your project in order to use this adapter.

Options

  • rounds - the number of calculations used to generate the hash (default: value of Comeonin.Config.pbkdf2_rounds/0)
  • salt_length - length of salt to generate (default: 16)

Link to this section Summary

Functions

Initializes the adapter

Secures the password. This will most likely be by either hashing or encrypting the password provided

Verifies that the plain text password and the secure password match

Link to this section Functions

Initializes the adapter.

The options returned from this function will be given to verify_password/3 and secure_password/2.

Callback implementation for Hora.Adapter.init/1.

Link to this function secure_password(password, opts)

Secures the password. This will most likely be by either hashing or encrypting the password provided.

Callback implementation for Hora.Adapter.secure_password/2.

Link to this function verify_password(password, secured_password, opts)

Verifies that the plain text password and the secure password match.

Callback implementation for Hora.Adapter.verify_password/3.