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