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:
- variant: Variant::Argon2i
- version: Version::Version13
- mem_cost: 4096
- time_cost: 3
- lanes: 1
- threads: 1
- secret: empty slice
- ad: empty slice
- hash_len: 32