Function orion::default::pbkdf2
[−]
[src]
pub fn pbkdf2(password: &[u8], salt: &[u8]) -> Vec<u8>
PBKDF2 with HMAC-SHA512. Uses 60000 iterations with an output length of 64 bytes.
Usage example:
use orion::default; use orion::util; // Salts are limited to being 64 in length here. let salt = util::gen_rand_key(64); let derived_password = default::pbkdf2("Secret password".as_bytes(), &salt);