MethodEncryptDecrypt constructor

MethodEncryptDecrypt({
  1. required int minHashes,
  2. required int maxHashes,
  3. required String saltBase64,
  4. required String ivBase64,
  5. Random? random,
})

minHashes and maxHashes sets the random number of possible hashes

saltBase64 is used as a cipher when encrypting the method value

ivBase64 is an initialization vector used in encryption

random allows you to change the seed used in the randomness or share it with other objects.

Implementation

MethodEncryptDecrypt({
  required this.minHashes,
  required this.maxHashes,
  required this.saltBase64,
  required this.ivBase64,
  Random? random,
}) : _random = random ?? Random.secure();