Skip to main content

verify_password

Function verify_password 

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

Verify a password against an Argon2id hash.

ยงErrors

Returns an error string if verification fails or the hash is invalid.