pub fn hash_with_salt<P: AsRef<[u8]>>(
password: P,
cost: u32,
salt: [u8; 16],
) -> BcryptResult<HashParts>Expand description
Generates a password given a hash and a cost. The function returns a result structure and allows to format the hash in different versions.