fn pbkdf(pass: []const u8, salt: []const u8, key: []u8, rounds: u32) !void
[src]
bcrypt-pbkdf is a key derivation function based on bcrypt. This is the function used in OpenSSH to derive encryption keys from passphrases.
This implementation is compatible with the OpenBSD implementation (https://github.com/openbsd/src/blob/master/lib/libutil/bcrypt_pbkdf.c).
Unlike the password hashing function bcrypt
, this function doesn’t silently truncate passwords longer than 72 bytes.