[−][src]Trait djangohashers::Hasher
Hasher abstraction, providing methods to encode and verify hashes.
Required methods
fn verify(&self, password: &str, encoded: &str) -> Result<bool, HasherError>
Verifies a password against an encoded hash.
fn encode(&self, password: &str, salt: &str, iterations: u32) -> String
Generates an encoded hash for a given password and salt.
Implementors
impl Hasher for Argon2Hasher
[src]
impl Hasher for Argon2Hasher
fn verify(&self, password: &str, encoded: &str) -> Result<bool, HasherError> | [src] |
fn encode(&self, password: &str, salt: &str, _: u32) -> String | [src] |
impl Hasher for BCryptHasher
[src]
impl Hasher for BCryptHasher
fn verify(&self, password: &str, encoded: &str) -> Result<bool, HasherError> | [src] |
fn encode(&self, password: &str, _: &str, iterations: u32) -> String | [src] |
impl Hasher for BCryptSHA256Hasher
[src]
impl Hasher for BCryptSHA256Hasher
fn verify(&self, password: &str, encoded: &str) -> Result<bool, HasherError> | [src] |
fn encode(&self, password: &str, _: &str, iterations: u32) -> String | [src] |
impl Hasher for CryptHasher
[src]
impl Hasher for CryptHasher
fn verify(&self, password: &str, encoded: &str) -> Result<bool, HasherError> | [src] |
fn encode(&self, password: &str, salt: &str, _: u32) -> String | [src] |
impl Hasher for MD5Hasher
[src]
impl Hasher for MD5Hasher
fn verify(&self, password: &str, encoded: &str) -> Result<bool, HasherError> | [src] |
fn encode(&self, password: &str, salt: &str, _: u32) -> String | [src] |
impl Hasher for PBKDF2Hasher
[src]
impl Hasher for PBKDF2Hasher
fn verify(&self, password: &str, encoded: &str) -> Result<bool, HasherError> | [src] |
fn encode(&self, password: &str, salt: &str, iterations: u32) -> String | [src] |
impl Hasher for PBKDF2SHA1Hasher
[src]
impl Hasher for PBKDF2SHA1Hasher
fn verify(&self, password: &str, encoded: &str) -> Result<bool, HasherError> | [src] |
fn encode(&self, password: &str, salt: &str, iterations: u32) -> String | [src] |
impl Hasher for SHA1Hasher
[src]
impl Hasher for SHA1Hasher
fn verify(&self, password: &str, encoded: &str) -> Result<bool, HasherError> | [src] |
fn encode(&self, password: &str, salt: &str, _: u32) -> String | [src] |
impl Hasher for UnsaltedMD5Hasher
[src]
impl Hasher for UnsaltedMD5Hasher
fn verify(&self, password: &str, encoded: &str) -> Result<bool, HasherError> | [src] |
fn encode(&self, password: &str, _: &str, _: u32) -> String | [src] |
impl Hasher for UnsaltedSHA1Hasher
[src]
impl Hasher for UnsaltedSHA1Hasher