pub fn verify_password(password: &str, hash: &str) -> Result<bool, CryptoError>Available on crate feature
crypto only.Expand description
Verify password against a PHC hash string produced by hash_password.
Returns Ok(true) if the password matches, Ok(false) if it does not.
Comparison is constant-time to prevent timing attacks.
ยงErrors
Returns CryptoError if hash is not a valid PHC string.