[−][src]Function argon2::i_hash_raw
pub fn i_hash_raw(
t_cost: u32,
m_cost: u32,
parallelism: u32,
pwd: Option<&[u8]>,
salt: Option<&[u8]>,
hash: &mut [u8]
) -> Result<(), Error>
Hashes a password with Argon2i, producing a raw hash.
Parameters
t_cost
: Number of iterationsm_cost
: Sets memory usage to m_cost kibibytesparallelism
: Number of threads and compute lanespwd
: Slice containing the password.salt
: Slice containing the salt.hash
: Buffer where to write the raw hash.
Notes
- The different parallelism levels will give different results.