core.crypto.password
Functions
|
The default password hashing algorithm used by onegov. |
|
Compares a password to a hash and returns true if they match according |
Module Contents
- core.crypto.password.hash_password(password: str) str [source]
The default password hashing algorithm used by onegov.
Over time the underlying algorithm may change, at which point
verify_password()
must issue a deprecation warning when using the old algorithm.Note that no salt is being passed, because the algorithm we use now (bcrypt), as well as the algorithm that we might use in the future (scrypt), generate their own salt automatically by default.
The salt is then stored in the resulting hash. That means that we do not pass or store a salt ourselves.