Function argon2_async::hash[][src]

pub async fn hash(password: impl AsRef<[u8]>) -> Result<String>
Expand description

Hash this password with the given config. Return the hashed password as a String.

Errors

This function errors if any of the following happen:

  • the given config is invalid
  • hashing the password fails
  • communication between threads fails