Function pbkdf2::pbkdf2_check
source · [−]pub fn pbkdf2_check(
password: &str,
hashed_value: &str
) -> Result<(), CheckError>Expand description
Compares a password against the result of a pbkdf2_simple.
It will return Ok(()) if password hashes to the same value, if hashes
are different it will return Err(CheckError::HashMismatch), and
Err(CheckError::InvalidFormat) if hashed_value has an invalid format.
Arguments
password- The password to processhashed_value- A string representing a hashed password returned bypbkdf2_simple
