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, but rejects passwords of 72 bytes or more.

ยงErrors

Truncation for password.len() >= 72; otherwise same as verify.