Argon2HashParameters constructor

Argon2HashParameters({
  1. int memory = 1 << 12,
  2. int? lanes,
  3. int iterations = 3,
  4. int desiredKeyLength = 32,
})

memory is the memory cost parameter in KiB (default: 4096 = 4MiB). lanes is the degree of parallelism (default: number of processors). iterations is the time cost parameter (default: 3, standard Argon2 value). desiredKeyLength is the output hash length in bytes (default: 32 = 256 bits).

Implementation

Argon2HashParameters({
  this.memory = 1 << 12,
  final int? lanes,
  this.iterations = 3,
  this.desiredKeyLength = 32,
}) : lanes = lanes ?? Platform.numberOfProcessors;