IDSCryptoConfiguration constructor

IDSCryptoConfiguration({
  1. required String password,
  2. String salt = 'salt',
  3. int iterations = 10000,
  4. int keyLength = 32,
  5. int ivLength = 16,
})

Creates a new IDSCryptoConfiguration instance with customizable parameters.

password is required. Default values:

  • salt = 'salt'
  • iterations = 10000
  • keyLength = 32 (for AES-256)
  • ivLength = 16

Implementation

IDSCryptoConfiguration({
  required this.password,
  this.salt = 'salt',
  this.iterations = 10000,
  this.keyLength = 32,
  this.ivLength = 16,
});