【发布时间】:2011-02-24 13:01:11
【问题描述】:
我有这个代码:
RijndaelManaged rijndaelCipher = new RijndaelManaged();
// Set key and IV
rijndaelCipher.Key = Convert.FromBase64String("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz012345678912");
rijndaelCipher.IV = Convert.FromBase64String("1234567890123456789012345678901234567890123456789012345678901234");
我得到了投掷:
Specified key is not a valid size for this algorithm.
Specified initialization vector (IV) does not match the block size for this algorithm.
这个字符串有什么问题?我可以数一下你的一些示例字符串吗?
【问题讨论】:
标签: c# encryption rijndaelmanaged