Struct Pbkdf2Settings
Contains configuration values used to derive passwords with PBKDF2.
Implements
Inherited Members
Namespace: TheXDS.MCART.Security
Assembly: MCART.Security.dll
Syntax
public readonly record struct Pbkdf2Settings : IEquatable<Pbkdf2Settings>
Constructors
| Edit this page View SourcePbkdf2Settings(byte[], int, string?, int)
Contains configuration values used to derive passwords with PBKDF2.
Declaration
public Pbkdf2Settings(byte[] Salt, int Iterations, string? HashFunction, int DerivedKeyLength)
Parameters
| Type | Name | Description |
|---|---|---|
| byte[] | Salt | Salt block used for key derivation. |
| int | Iterations | Number of PBKDF2 iterations. |
| string | HashFunction | Name of the hash algorithm used. |
| int | DerivedKeyLength | Number of bytes to derive. |
Properties
| Edit this page View SourceDerivedKeyLength
Number of bytes to derive.
Declaration
public int DerivedKeyLength { get; init; }
Property Value
| Type | Description |
|---|---|
| int |
HashFunction
Name of the hash algorithm used.
Declaration
public string? HashFunction { get; init; }
Property Value
| Type | Description |
|---|---|
| string |
Iterations
Number of PBKDF2 iterations.
Declaration
public int Iterations { get; init; }
Property Value
| Type | Description |
|---|---|
| int |
Salt
Salt block used for key derivation.
Declaration
public byte[] Salt { get; init; }
Property Value
| Type | Description |
|---|---|
| byte[] |