对c#来说很新,目前在解密长密码时遇到问题,错误是 指定的密钥不是此算法的有效大小我知道这与加密有关…
该功能需要进行两项更改 public string DecryptString(string cipherText)
public string DecryptString(string cipherText)
var cipher = new byte[fullCipher.Length - IV.Length];
和
Buffer.BlockCopy(fullCipher, IV.Length, cipher, 0, fullCipher.Length - IV.Length);