AESEncryption constructor

AESEncryption({
  1. required String encryptionKey,
  2. AESMode? mode,
  3. String? padding,
})

Constructor for AESEncryption class.

encryptionKey is the key used for encryption. It must be 16, 24, or 32 characters long. accessKey is the key used to store and retrieve the encrypted value. mode is the AES mode (e.g., AESMode.sic). If not provided, AESMode.sic is used by default. padding is the padding scheme to be used. If not provided, the default padding is used.

Implementation

AESEncryption({
  required this.encryptionKey,
  this.mode,
  this.padding,
});