non_truncating_hash

Function non_truncating_hash 

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

Generates a password hash using the cost given. The salt is generated randomly using the OS randomness Will return BcryptError::Truncation if password is longer than 72 bytes