相关疑难解决方法(0)

指定的密钥不是此算法的有效大小

我有这个代码:

RijndaelManaged rijndaelCipher = new RijndaelManaged();

            // Set key and IV
            rijndaelCipher.Key = Convert.FromBase64String("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz012345678912");
            rijndaelCipher.IV = Convert.FromBase64String("1234567890123456789012345678901234567890123456789012345678901234");
Run Code Online (Sandbox Code Playgroud)

我被抛出:

Specified key is not a valid size for this algorithm.

Specified initialization vector (IV) does not match the block size for this algorithm.
Run Code Online (Sandbox Code Playgroud)

这个字符串出了什么问题?我能算一下你的一些例子吗?

c# encryption rijndaelmanaged

47
推荐指数
2
解决办法
7万
查看次数

标签 统计

c# ×1

encryption ×1

rijndaelmanaged ×1