Skip to main content

non_truncating_hash_bytes

Function non_truncating_hash_bytes 

Source
pub fn non_truncating_hash_bytes<P: AsRef<[u8]>>(
    password: P,
    cost: u32,
) -> BcryptResult<[u8; 60]>
Expand description

hash_bytes, but rejects passwords of 72 bytes or more.

ยงErrors

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