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