aesEncode static method
aes加密
key
AesCrypt加密key
content
需要加密的内容字符串
Implementation
static String aesEncode({required String key, required String content}) {
var aesEncrypter = AesCrypt(
key: base64UrlEncode(key.codeUnits), padding: PaddingAES.pkcs7);
return aesEncrypter.ecb.encrypt(inp: content);
}