Struct djangohashers::PBKDF2Hasher [] [src]

pub struct PBKDF2Hasher;

Hasher that uses the PBKDF2 key-derivation function with the SHA256 hashing algorithm.

Trait Implementations

impl Hasher for PBKDF2Hasher
[src]

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

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.