Encryption constructor

Encryption({
  1. EncryptionAlgorithm algorithm = EncryptionAlgorithm.aes256,
  2. required String encryptionKey,
})

Creates a new instance of Encryption.

The algorithm parameter specifies the encryption algorithm to use. The encryptionKey parameter is the key used for encryption and decryption.

Implementation

Encryption({
  this.algorithm = EncryptionAlgorithm.aes256,
  required this.encryptionKey,
});