Argon2Options class
Argon2 parameters. The defaults follow the RFC 9106 "second recommended" profile: 64 MiB of memory, 3 passes, 1 lane.
Constructors
- Argon2Options({Argon2Type type = Argon2Type.id, int iterations = 3, int memoryKib = 65536, int lanes = 1, int length = 32, Uint8List? secret, Uint8List? associatedData})
-
const
Properties
- associatedData → Uint8List?
-
Optional associated data.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- iterations → int
-
Number of passes over memory (
t). More passes, more time.final - lanes → int
-
Degree of parallelism (
p), also called lanes.final - length → int
-
Output length in bytes.
final
- memoryKib → int
-
Memory cost in kibibytes (
m). 65536 means 64 MiB.final - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- secret → Uint8List?
-
Optional key ("pepper"), mixed into the hash. Not stored in the PHC
string, so it has to be supplied again at verification time.
final
- type → Argon2Type
-
Variant to use.
final
Methods
-
copyWith(
{Argon2Type? type, int? iterations, int? memoryKib, int? lanes, int? length, Uint8List? secret, Uint8List? associatedData}) → Argon2Options - Copy with individual fields replaced.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Constants
- interactive → const Argon2Options
- Cheap profile for tests and interactive flows where 64 MiB is too much.