Skip to main content

verify_password

Function verify_password 

Source
pub fn verify_password(stored: &str, presented: &str) -> bool
Expand description

Whether presented is the password stored (an Argon2id hash) was made from. A password over DEFAULT_MAX_PASSWORD_BYTES or a stored string that is not Argon2id never matches; PasswordHasher::verify applies the hasher’s own bound instead.