pub fn verify_password_with_policy(
password: &str,
hash: &str,
policy: &PasswordHashPolicy,
) -> Result<PasswordHashVerification>Expand description
Verifies a password with an explicit policy and reports whether a matching hash needs upgrade.
§Errors
Returns an error when the stored PHC string is malformed, unsupported, outside policy’s
verification limits, or the Argon2 verifier fails for a reason other than password mismatch.