structstd.crypto.bcrypt.HashOptions[src]

Options for hashing a password.

Fields

allocator: ?mem.Allocator = null

For bcrypt, that can be left to null.

params: Params

Internal bcrypt parameters.

encoding: pwhash.Encoding

Encoding to use for the output of the hash function.

Source Code

Source code
pub const HashOptions = struct {
    /// For `bcrypt`, that can be left to `null`.
    allocator: ?mem.Allocator = null,
    /// Internal bcrypt parameters.
    params: Params,
    /// Encoding to use for the output of the hash function.
    encoding: pwhash.Encoding,
}