Function bcrypt

Source
pub fn bcrypt(
    key: &[u8],
    salt: &Salt,
    work_factor: WorkFactor,
) -> Result<[u8; 23], BcryptError>
Expand description

Hashes a key and salt with bcrypt according to a work factor. The key can’t be longer than 72 bytes and can’t contain a 0 byte.