secureCompressSync function
Implementation
String secureCompressSync(
{required String data,
required String encryptionKey,
required String initialVector}) {
AesEncryption encryptor = AesEncryption(encryptionKey, initialVector);
//compress
String compressed = compressSync(data);
//encrypt
Encrypted encoded =
encryptor.encryption(compressed, encryptionKey, initialVector);
return encoded.base64;
}