verify_password

Function verify_password 

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

Verifies a password with the default policy.

Malformed, unsupported, or over-budget hashes return an error. Only a genuine password mismatch returns Ok(false).

ยงErrors

Returns an error when the stored PHC string is malformed, uses unsupported parameters, exceeds the default verification budget, or the Argon2 verifier fails for a reason other than password mismatch.