Skip to main content

verify_password

Function verify_password 

Source
pub fn verify_password(password: &str, stored_hash: &str) -> Result<bool, Error>
Expand description

Verify a password against a PHC-encoded Argon2 hash. Returns Ok(false) on mismatch and Ok(true) on match.

ยงErrors

Returns Error::PasswordHash if the stored hash cannot be parsed.