Skip to main content

password_hash_argon2id

Function password_hash_argon2id 

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

password_hash($password, PASSWORD_ARGON2ID, $options) with the options’ memory_cost, time_cost and threads (already cast to int) and salt (16 random bytes in PHP).