我有这段代码:
RijndaelManaged rijndaelCipher = new RijndaelManaged();
// Set key and IV
rijndaelCipher.Key = Convert.FromBase64String("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz012345678912");
rijndaelCipher.IV = Convert.FromBase64String("1234567890123456789012345678901234567890123456789012345678901234");
我遇到了这个异常:
指定的密钥不是此算法的有效大小。
指定的初始化向量(IV)与此算法的块大小不匹配。
这些字符串有什么问题?你能给我一些例子吗?