Skip to main content

verify_password

Function verify_password 

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

Verify a password against its hash.

The Argon2 parameters are read from the hash itself, so verification works for hashes created with any parameter set.