Functions
fn kdf(allocator: mem.Allocator, derived_key: []u8, password: []const u8, salt: []const u8, params: Params, mode: Mode) KdfError!void
Derives a key from the password, salt, and argon2 parameters.
Derives a key from the password, salt, and argon2 parameters.
Derived key has to be at least 4 bytes length.
Salt has to be at least 8 bytes length.
fn strHash(password: []const u8, options: HashOptions, out: []u8) Error![]const u8
Compute a hash of a password using the argon2 key derivation function. The func…
Compute a hash of a password using the argon2 key derivation function. The function returns a string that includes all the parameters required for verification.
fn strVerify(str: []const u8, password: []const u8, options: VerifyOptions) Error!void
Verify that a previously computed hash is valid for a given password.