Function eznacl::hash_password
source · [−]pub fn hash_password(password: &str, strength: &HashStrength) -> String
Expand description
hash_password is a simple function to turn a string into a 256-bit Argon2 password hash. If you don’t want to bother fine-tuning your Argon2id parameters and just want something simple and secure for day-to-day use, use this.