Function argon2::hash_encoded_defaults [] [src]

pub fn hash_encoded_defaults(pwd: &[u8], salt: &[u8]) -> Result<String>

Hashes the password using default settings and returns the encoded hash.

Examples

use argon2;

let pwd = b"password";
let salt = b"somesalt";
let encoded = argon2::hash_encoded_defaults(pwd, salt).unwrap();

Remarks

The following settings are used: