Skip to main content

hash_with_salt_bytes

Function hash_with_salt_bytes 

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

Generates a password given a hash and a cost, returning a fixed-size stack buffer. The returned buffer is always exactly 60 bytes of valid UTF-8 (version 2b format).