Show / Hide Table of Contents

Class Argon2Storage

Derives keys from passwords using the Argon2 algorithm.

Inheritance
object
Argon2Storage
Implements
IPasswordStorage<Argon2Settings>
IPasswordStorage
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: TheXDS.MCART.Security
Assembly: MCART.Security.Argon2.dll
Syntax
public class Argon2Storage : IPasswordStorage<Argon2Settings>, IPasswordStorage

Constructors

| Edit this page View Source

Argon2Storage()

Initializes a new instance of the Argon2Storage class, setting the key derivation algorithm configuration to the default values.

Declaration
public Argon2Storage()
| Edit this page View Source

Argon2Storage(Argon2Settings)

Derives keys from passwords using the Argon2 algorithm.

Declaration
public Argon2Storage(Argon2Settings settings)
Parameters
Type Name Description
Argon2Settings settings

Configuration of the key derivation algorithm to be used.

Properties

| Edit this page View Source

Settings

Gets a reference to the active configuration of this instance.

Declaration
public Argon2Settings Settings { get; set; }
Property Value
Type Description
Argon2Settings

Methods

| Edit this page View Source

ConfigureFrom(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.

| Edit this page View Source

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.

| Edit this page View Source

GetDefaultSettings()

Gets a Argon2Settings that represents the recommended default configuration for deriving storage keys.

Declaration
public static Argon2Settings GetDefaultSettings()
Returns
Type Description
Argon2Settings

A Argon2Settings that represents the recommended default configuration.

Implements

IPasswordStorage<T>
IPasswordStorage

Extension Methods

Objects.ShallowCopyTo(object, object, Type)
ObjectExtensions.FieldsOf<T>(object)
ObjectExtensions.GetAttribute<T>(object)
ObjectExtensions.GetAttributes<T>(object)
ObjectExtensions.HasAttrValue<TAttribute, TValue>(object, out TValue)
ObjectExtensions.HasAttribute<T>(object)
ObjectExtensions.HasAttribute<T>(object, out T?)
ObjectExtensions.HasAttributes<T>(object, out IEnumerable<T>?)
ObjectExtensions.Is(object?, object?)
ObjectExtensions.IsEither(object, IEnumerable)
ObjectExtensions.IsEither(object, params object[])
ObjectExtensions.IsNeither(object, IEnumerable)
ObjectExtensions.IsNeither(object, params object[])
ObjectExtensions.IsNot(object?, object?)
ObjectExtensions.PropertiesOf<T>(object)
ObjectExtensions.WhichAre(object, IEnumerable<object>)
ObjectExtensions.WhichAre(object, params object[])
Common.IfNotNull<T>(T?, Action<T>)
Objects.Itself<T>(T)
Objects.ShallowClone<T>(T)
Objects.ShallowCopyTo<T>(T, T)
CollectionExtensions.PushInto<TItem, TCollection>(TItem, ICollection<TCollection>)
DictionaryExtensions.PushInto<TKey, TValue>(TValue, TKey, IDictionary<TKey, TValue>)
  • Edit this page
  • View Source
In this article
Back to top Generated by DocFX