class BCryptPasswordHasher(BCryptSHA256PasswordHasher):
Secure password hashing using the bcrypt algorithm
This is considered by many to be the most secure algorithm but you must first install the bcrypt library. Please be warned that this library depends on native C code and might cause portability issues.
This hasher does not first hash the password which means it is subject to bcrypt's 72 bytes password truncation. Most use cases should prefer the BCryptSHA256PasswordHasher.
Class Variable | algorithm |
Undocumented |
Class Variable | digest |
Undocumented |
Inherited from BCryptSHA256PasswordHasher
:
Method | decode |
Return a decoded database value. |
Method | encode |
Create an encoded database value. |
Method | harden_runtime |
Bridge the runtime gap between the work factor supplied in encoded and the work factor suggested by this hasher. |
Method | must_update |
Undocumented |
Method | safe_summary |
Return a summary of safe values. |
Method | salt |
Generate a cryptographically secure nonce salt in ASCII with an entropy of at least salt_entropy bits. |
Method | verify |
Check if the given password is correct. |
Class Variable | library |
Undocumented |
Class Variable | rounds |
Undocumented |
Inherited from BasePasswordHasher
(via BCryptSHA256PasswordHasher
):
Method | _check_encode_args |
Undocumented |
Method | _load_library |
Undocumented |
Class Variable | salt_entropy |
Undocumented |