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.

silently_truncate_password: bool = true,

Whether to silently truncate the password to 72 bytes, or pre-hash the password when it is longer. The default is true, for compatibility with the original bcrypt implementation.