[][src]Trait djangohashers::Hasher

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

Hasher abstraction, providing methods to encode and verify hashes.

Required methods

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

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.

Loading content...

Implementors

impl Hasher for Argon2Hasher
[src]

impl Hasher for BCryptHasher
[src]

impl Hasher for BCryptSHA256Hasher
[src]

impl Hasher for CryptHasher
[src]

impl Hasher for MD5Hasher
[src]

impl Hasher for PBKDF2Hasher
[src]

impl Hasher for PBKDF2SHA1Hasher
[src]

impl Hasher for SHA1Hasher
[src]

impl Hasher for UnsaltedMD5Hasher
[src]

impl Hasher for UnsaltedSHA1Hasher
[src]

Loading content...