aesEncrypt static method
Implementation
static String aesEncrypt(String content, String key, String iv) {
//final keyId = Key(Uint8List.fromList(HEX.decode(key)));
final encrypter =
Encrypter(AES(Key.fromUtf8(key), mode: AESMode.cbc, padding: 'PKCS7'));
final encrypted = encrypter.encrypt(content, iv: IV.fromUtf8(iv));
return encrypted.base64;
}