Struct djangohashers::SHA1Hasher [] [src]

pub struct SHA1Hasher;

Hasher that uses the SHA1 hashing function over the salted password.

Trait Implementations

impl Hasher for SHA1Hasher
[src]

fn verify(&self, password: &str, encoded: &str) -> Result<boolHasherError>

Verifies a password against an encoded hash.

fn encode(&self, password: &str, salt: &str, _: u32) -> String

Generates an encoded hash for a given password and salt.