[][src]Function argon2::id_hash_encoded

pub fn id_hash_encoded(
    t_cost: u32,
    m_cost: u32,
    parallelism: u32,
    pwd: Option<&[u8]>,
    salt: Option<&[u8]>,
    hashlen: usize,
    encoded: &mut [u8]
) -> Result<(), Error>

Hashes a password with Argon2id, producing an encoded (string) hash.

Parameters

  • t_cost: Number of iterations
  • m_cost: Sets memory usage to m_cost kibibytes
  • parallelism: Number of threads and compute lanes
  • pwd: 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.