encodeData static method
Implementation
static String encodeData(String data) {
final base64 = encodeCookie(data);
final key = encryptor.Key.fromLength(32);
final iv = encryptor.IV.fromLength(16);
final encrypter = encryptor.Encrypter(encryptor.AES(key));
final encrypted = encrypter.encrypt(base64, iv: iv);
return encrypted.base64;
}