Hora v1.0.0 Hora.Adapter.Bcrypt
Adapter for managing passwords using bcrypt.
Note that you will need to add comeonin
as a dependency to your project in
order to use this adapter.
Options
log_rounds
- the computational complexity of the generation of the password hash (default: value ofComeonin.Config.bcrypt_log_rounds/0
)
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
.
Secures the password. This will most likely be by either hashing or encrypting the password provided.
Callback implementation for Hora.Adapter.secure_password/2
.
Verifies that the plain text password and the secure password match.
Callback implementation for Hora.Adapter.verify_password/3
.