Skip to main content

verify

Function verify 

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

Verify a password against a stored hash.

Returns false rather than an error for a malformed or empty hash, matching upstream: compare resolves false when either side is falsy rather than throwing (password.js:24-29). A stored hash that cannot be parsed is a failed login, not a 500.