Argon2Config Class

Holds configuration needed to perform an Argon2 hash.

Definition

Namespace: Gemstone.Security.Cryptography.Argon2Hash
Assembly: Gemstone.Security (in Gemstone.Security.dll) Version: 1.0.171 -- Release Build+9bbaecd83e44e0973a7b18ef958272cfb4d67729
public sealed class Argon2Config
Inheritance
Object    Argon2Config

Constructors

Argon2ConfigInitializes a new instance of the Argon2Config class

Properties

AssociatedData Gets or sets the associated data used in the password hash.
ClearPassword Gets or sets a value indicating whether to clear the password as soon as it is no longer needed.
ClearSecret Gets or sets a value indicating whether to clear the secret as soon as it is no longer needed.
HashLength Gets or sets the hash length to output. Minimum of 4. Default 32.
Lanes Gets or sets the lanes used in the password hash. Minimum of 1. Defaults to 4.
MemoryCost Gets or sets the memory cost used in the password hash. Minimum of 1. Defaults to 65536.
Password Gets or sets the password to hash.
Salt Gets or sets the salt used in the password hash. If non-null, must be at least 8 bytes.
Secret Gets or sets the secret used in the password hash.
Threads Gets or sets the threads used in the password hash. Minimum of 1. Defaults to 1.
TimeCost Gets or sets the time cost used in the password hash. Minimum of 1. Defaults to 3.
Type Gets or sets the Argon2 type. Default to hybrid.
Version Gets or sets the Argon2 version used in the password hash. Defaults to Argon2Version.Nineteen (0x13).

Methods

EqualsDetermines whether the specified object is equal to the current object.
(Inherited from Object)
GetHashCodeServes as the default hash function.
(Inherited from Object)
GetTypeGets the Type of the current instance.
(Inherited from Object)
ToStringReturns a string that represents the current object.
(Inherited from Object)

Extension Methods

DecodeString Decodes an Argon2 hash string into an Argon2 class instance.
(Defined by DecodeExtension)
EncodeString Encodes an Argon2 instance into a string.
(Defined by EncodeExtension)

See Also