好心人来看一下
我用的是这里面的,全盘拷贝。
http://www.zpcity.com/arli/commonprj/cls_DesEncrypt.cs
写到了service中。
调用的语句:
string spp=ds.Encrypt_3DES(Encoding.Unicode.GetBytes(Digest),res,res).ToString();
其中ds是一个service代理类。res是一个24位的byte[]{Response.Write(res.Length.Tostring())}出24
报错信息如下:
异常详细信息: System.Security.Cryptography.CryptographicException: 指定的初始化向量(IV)与此算法的块大小不匹配。
行 223: des.IV = desIV;
请高手解决一下好么?