Class Pbkdf2Storage
Derives keys from passwords using the PBKDF2 algorithm.
Inherited Members
Namespace: TheXDS.MCART.Security
Assembly: MCART.Security.dll
Syntax
public class Pbkdf2Storage : IPasswordStorage<Pbkdf2Settings>, IPasswordStorage
Remarks
Initializes a new instance of the Pbkdf2Storage class, specifying the key‑derivation algorithm configuration to use.
Constructors
| Edit this page View SourcePbkdf2Storage()
Initializes a new instance of the Pbkdf2Storage class, setting the key‑derivation algorithm configuration to the default values.
Declaration
public Pbkdf2Storage()
Pbkdf2Storage(Pbkdf2Settings)
Derives keys from passwords using the PBKDF2 algorithm.
Declaration
public Pbkdf2Storage(Pbkdf2Settings settings)
Parameters
| Type | Name | Description |
|---|---|---|
| Pbkdf2Settings | settings | The key‑derivation algorithm configuration to use. |
Remarks
Initializes a new instance of the Pbkdf2Storage class, specifying the key‑derivation algorithm configuration to use.
Properties
| Edit this page View SourceSettings
Gets a reference to the active configuration of this instance.
Declaration
public Pbkdf2Settings Settings { get; set; }
Property Value
| Type | Description |
|---|---|
| Pbkdf2Settings |
Methods
| Edit this page View SourceConfigureFrom(BinaryReader)
Obtains configuration from the specified block, advancing the reader by the number of bytes required by this instance's configuration.
Declaration
public void ConfigureFrom(BinaryReader reader)
Parameters
| Type | Name | Description |
|---|---|---|
| BinaryReader | reader | Object from which configuration values are read. |
DumpSettings()
Writes configuration values in binary format.
Declaration
public byte[] DumpSettings()
Returns
| Type | Description |
|---|---|
| byte[] | A byte array that can be used to reconstruct the key‑derivation configuration for this instance. |
GetDefaultSettings()
Gets a Pbkdf2Settings representing the recommended default configuration for key derivation in storage.
Declaration
public static Pbkdf2Settings GetDefaultSettings()
Returns
| Type | Description |
|---|---|
| Pbkdf2Settings | A Pbkdf2Settings that represents the recommended default configuration. |