Skip to main content

verify

Function verify 

Source
pub fn verify(password: &str, stored: &str) -> bool
Expand description

Verify a password against a stored PHC hash.

Returns false on any failure — malformed hash, mismatched password, internal error. Never panics. The comparison inside argon2 is constant-time.