pub fn d_hash_encoded(
t_cost: u32,
m_cost: u32,
parallelism: u32,
pwd: Option<&[u8]>,
salt: Option<&[u8]>,
hashlen: usize,
encoded: &mut [u8],
) -> Result<(), Error>Expand description
Hashes a password with Argon2d, producing an encoded (string) 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.hashlen: Desired length of the hash in bytes.encoded: Buffer where to write the encoded hash.
§Notes
- The different parallelism levels will give different results.