Skip to main content

password_hash_bcrypt

Function password_hash_bcrypt 

Source
pub fn password_hash_bcrypt(
    password: &[u8],
    cost: i64,
    salt: &[u8; 16],
) -> Result<Vec<u8>, Error>
Expand description

password_hash($password, PASSWORD_BCRYPT, ['cost' => $cost]) with salt (16 random bytes in PHP).