这是第三次反馈了!!!!
对于wx.getShareInfo得到的数据encryptedData和iv的解密缺少C#版本的解密,请管理员尽快的解决!!!
还有就是为啥自己写的如下的代码,执行会报错填充值无效,无法删除!!!!请大家给看看,这个如何解决???
RijndaelManaged rijndaelCipher = new RijndaelManaged();
//16进制数据转成byte类型
byte[] edata = Convert.FromBase64String(encryptedData);
rijndaelCipher.Key = Convert.FromBase64String(sessionKey);
rijndaelCipher.IV = Convert.FromBase64String(iv);
rijndaelCipher.Mode = CipherMode.CBC;
rijndaelCipher.BlockSize = 128;
rijndaelCipher.KeySize = 256;
rijndaelCipher.Padding=PaddingMode.PKCS7;
var transform= rijndaelCipher.CreateDecryptor();
byte[] plainText = transform.TransformFinalBlock(edata, 0, edata.Length);
string jieguo = Encoding.UTF8.GetString(plainText);