Function argon2::hash_raw_defaults [] [src]

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

Hashes the password using default settings and returns the hash as a vector.

Examples

use argon2;

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

Remarks

The following settings are used: