EncryptionConfig constructor
const
EncryptionConfig({})
Implementation
const EncryptionConfig({
required this.enabled,
required this.key,
this.algorithm = EncryptionAlgorithm.aes256GCM,
this.encryptFieldNames = false,
this.compressBeforeEncryption = true,
}) : assert(
!enabled || key.length == 32,
'Encryption key must be exactly 32 bytes (256 bits)',
);