encode static method
Implementation
static String encode(content) {
var plainText = base64.encode(utf8.encode(content));
final iv = IV.fromLength(16);
final key = Key.fromUtf8(Dox().config.appKey);
final encrypter = Encrypter(AES(key));
final encrypted = encrypter.encrypt(plainText, iv: iv);
return encrypted.base64;
}