Function pbkdf [src]
bcrypt-pbkdf is a key derivation function based on bcrypt.
Unlike the password hashing function bcrypt, this function doesn't silently truncate passwords longer than 72 bytes.
Prototype
pub fn pbkdf(pass: []const u8, salt: []const u8, key: []u8, rounds: u32) !void Parameters
pass: []const u8salt: []const u8key: []u8rounds: u32 Source
pub fn pbkdf(pass: []const u8, salt: []const u8, key: []u8, rounds: u32) !void {
try crypto.pwhash.pbkdf2(key, pass, salt, rounds, pbkdf_prf);
}