aesDecrypted static method
解密函数
Implementation
static String aesDecrypted(String data,String secKey){
//加密key
final key = encrypt.Key.fromUtf8(secKey);
//偏移量
final iv = encrypt.IV.fromUtf8(_iv);
//设置ecb模式
final encrypter = encrypt.Encrypter(
encrypt.AES(key, mode: encrypt.AESMode.ecb, padding: 'PKCS7'));
return encrypter.decrypt(Encrypted.fromBase64(data), iv: iv);
}