aesDecode static method

String aesDecode({
  1. required String key,
  2. required String content,
})

aes解密 keyaes解密key content 需要加密的内容字符串

Implementation

static String aesDecode({required String key, required String content}) {
  var aesEncrypter = AesCrypt(
      key: base64UrlEncode(key.codeUnits), padding: PaddingAES.pkcs7);
  return aesEncrypter.ecb.decrypt(enc: content);
}