Class Argon2idHashOptions

Assembly: redb.Identity.Core.dll

Argon2id parameters. Defaults match OWASP 2023 guidance for password storage:
m=64 MiB, t=3, p=4, salt=16 bytes, hash=32 bytes (≈50–150 ms per verify on a modern CPU).
Tune per deployment and measure with identity.password.verify.duration histogram.

public sealed class Argon2idHashOptions

Inheritance

Object→Argon2idHashOptions

Properties

HashBytes

Hash length in bytes. Default: 32 (256 bit).

public int HashBytes { get; set; }

Iterations

Iterations (time cost). Default: 3.

public int Iterations { get; set; }

MemoryKib

Memory cost in KiB. Default: 65536 (64 MiB).

public int MemoryKib { get; set; }

Parallelism

Degree of parallelism (lanes). Default: 4.

public int Parallelism { get; set; }

SaltBytes

Salt length in bytes. Default: 16 (128 bit).

public int SaltBytes { get; set; }