Struct djangohashers::BCryptSHA256Hasher [] [src]

pub struct BCryptSHA256Hasher;

Hasher that uses the bcrypt key-derivation function with the password padded with SHA256.

Trait Implementations

impl Hasher for BCryptSHA256Hasher
[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.