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:
- 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