Class PasswordHashingOptions

Assembly: redb.Identity.Core.dll

C12 — password hashing configuration.

selects the primary algorithm used for new password hashes.
On successful verification of a legacy hash (different algorithm, or same algorithm with
weaker parameters than the current configuration), the login flow re-hashes the plaintext
and persists it — the standard OWASP upgrade-on-login pattern. See
Security.MultiFormatPasswordHasher + Services.LoginService for the
implementation.

public sealed class PasswordHashingOptions

Inheritance

Object→PasswordHashingOptions

Properties

Algorithm

Primary algorithm used for new hashes. Default:

public PasswordHashAlgorithm Algorithm { get; set; }

Argon2id

Argon2id parameters (used when = ).

public Argon2idHashOptions Argon2id { get; set; }

Bcrypt

BCrypt parameters (used when =

public BcryptHashOptions Bcrypt { get; set; }