Argon2idKdf class

Argon2id KDF wrapper that accepts password bytes.

Provides a secure, memory-hard KDF suitable for production use.

Performance Note: Argon2id is intentionally slow and uses Dart isolates for parallelism. If you experience non-deterministic slowdowns (operations taking 60+ seconds instead of the expected 2-6 seconds), see PROFILING.md for diagnosis and tuning guidance.

Implemented types

Constructors

Argon2idKdf({required String name, required Argon2id argon2, void onDeriveComplete(int durationMs)?})

Properties

argon2 → Argon2id
final
hashCode int
The hash code for this object.
no setterinherited
name String
Name of the KDF algorithm.
final
onDeriveComplete → void Function(int durationMs)?
Optional callback to receive timing information for performance monitoring.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

deriveKeyFromPasswordBytes({required Uint8List passwordBytes, required Uint8List salt, Uint8List? userIdBytes}) Future<Uint8List>
Derives a key from password bytes and salt.
override
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