pub trait PasswordVerifier<H>where
H: ?Sized,{
// Required method
fn verify_password(&self, password: &[u8], hash: &H) -> Result<(), Error>;
}Available on crate feature
password-hash only.Expand description
Trait for password verification.
Generic around a password hash to be returned (typically [phc::PasswordHash])
Automatically impl’d for type that impl PasswordHasher with [phc::PasswordHash] as H.
This trait is object safe and can be used to implement abstractions over multiple password hashing algorithms.