structstd.crypto.bcrypt.VerifyOptions[src]

Options for hash verification.

Fields

allocator: ?mem.Allocator = null

For bcrypt, that can be left to null.

silently_truncate_password: bool

Whether to silently truncate the password to 72 bytes, or pre-hash the password when it is longer.

Source Code

Source code
pub const VerifyOptions = struct {
    /// For `bcrypt`, that can be left to `null`.
    allocator: ?mem.Allocator = null,
    /// Whether to silently truncate the password to 72 bytes, or pre-hash the password when it is longer.
    silently_truncate_password: bool,
}