Struct djangohashers::BCryptHasher [] [src]

pub struct BCryptHasher;

Hasher that uses the bcrypt key-derivation function without password padding.

Trait Implementations

impl Hasher for BCryptHasher
[src]

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

Verifies a password against an encoded hash.

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

Generates an encoded hash for a given password and salt.