Trait djangohashers::Hasher [] [src]

pub trait Hasher {
    fn verify(&self, password: &str, encoded: &str) -> Result<boolHasherError>;
    fn encode(&self, password: &str, salt: &str, iterations: u32) -> String;
}

Hasher abstraction, providing methods to encode and verify hashes.

Required Methods

Verifies a password against an encoded hash.

Generates an encoded hash for a given password and salt.

Implementors