Specified key is not a valid size for this algorithm

后端 未结 5 1816
抹茶落季
抹茶落季 2020-11-29 07:13

I have with this code:

RijndaelManaged rijndaelCipher = new RijndaelManaged();

            // Set key and IV
            rijndaelCipher.Key = Convert.FromBa         


        
5条回答
  •  独厮守ぢ
    2020-11-29 07:51

    I don't know the length of rijndaelCipher.Key if it is 24, then rijndaelCipher.Key = s.SubString(0, 24);

    So easy.

提交回复
热议问题