Argon2HashParameters class final
Parameters for hashing a secret using the Argon2id algorithm.
Constructors
- Argon2HashParameters({int memory = 1 << 12, int? lanes, int iterations = 3, int desiredKeyLength = 32})
-
memoryis the memory cost parameter in KiB (default: 4096 = 4MiB).lanesis the degree of parallelism (default: number of processors).iterationsis the time cost parameter (default: 3, standard Argon2 value).desiredKeyLengthis the output hash length in bytes (default: 32 = 256 bits).
Properties
- desiredKeyLength → int
-
The output hash length in bytes (default: 32 = 256 bits).
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- iterations → int
-
The time cost parameter (default: 3, standard Argon2 value).
final
- lanes → int
-
The degree of parallelism (default: number of processors).
final
- memory → int
-
The memory cost parameter in KiB (default: 4096 = 4MiB).
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited