Trait argon2::PasswordVerifier [−][src]
This is supported on crate feature
password-hash
only.Trait for password verification.
Automatically impl’d for any type that impls PasswordHasher
.
This trait is object safe and can be used to implement abstractions over
multiple password hashing algorithms. One such abstraction is provided by
the PasswordHash::verify_password
method.
Required methods
pub fn verify_password(
&self,
password: &[u8],
hash: &PasswordHash<'_>
) -> Result<(), VerifyError>
[src]
&self,
password: &[u8],
hash: &PasswordHash<'_>
) -> Result<(), VerifyError>
Compute this password hashing function against the provided password using the parameters from the provided password hash and see if the computed output matches.
Implementors
impl<T> PasswordVerifier for T where
T: PasswordHasher,
[src]
T: PasswordHasher,
pub fn verify_password(
&self,
password: &[u8],
hash: &PasswordHash<'_>
) -> Result<(), VerifyError>
[src]
&self,
password: &[u8],
hash: &PasswordHash<'_>
) -> Result<(), VerifyError>