Skip to main content

non_truncating_verify

Function non_truncating_verify 

Source
pub fn non_truncating_verify<P: AsRef<[u8]>>(
    password: P,
    hash: &str,
) -> BcryptResult<bool>
Expand description

Verify that a password is equivalent to the hash provided. Only use this if you are only using non_truncating_hash to generate the hash. It will return an error for inputs that will work if generated from other sources.