Argon2Context class
The configuration used by the Argon2 algorithm
Constructors
-
Argon2Context.new({required int iterations, required int parallelism, required int memorySizeKB, List<
int> ? key, List<int> ? salt, List<int> ? personalization, int? hashLength, Argon2Version version = Argon2Version.v13, Argon2Type type = Argon2Type.argon2id}) -
Creates a context for Argon2 password hashing
factory
-
Argon2Context.fromEncoded(CryptData data, {List<
int> ? key, List<int> ? personalization}) -
Creates an Argon2Context instance from an encoded PHC-compliant string.
factory
Properties
- blocks → int
-
Total number of memory blocks (1024 bytes each)
final
- columns → int
-
Total number of columns per lane
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- hashLength → int
-
Desired number of returned bytes
final
-
key
→ List<
int> ? -
Optional key
final
- lanes → int
-
Degree of parallelism (i.e. number of threads)
final
- memorySizeKB → int
-
Amount of memory (in kibibytes) to use
final
- midSlice → int
-
The start index of the second half of the slices
final
- passes → int
-
Number of iterations to perform
final
-
personalization
→ List<
int> ? -
Optional arbitrary additional data
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
salt
→ List<
int> -
Salt (16 bytes recommended for password hashing)
final
- segments → int
-
Number of segments per lane
final
- slices → int
-
Number of slices per column
final
- type → Argon2Type
-
Argon2 Hash Type
final
- version → Argon2Version
-
The current version is 0x13 (decimal: 19)
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toEncoded(
Uint8List hashBytes) → String - Gets the PHC-compliant string for this Argon2HashDigest
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited