我是加密新手。我需要实现非对称加密算法,我认为它使用私钥/公钥。我开始使用RSACryptoServiceProvider的一个示例。对于需要加密的小数据,这是可以的。但是当在相对较大的数据"2行“上使用它时,我得到了异常CryptographicException”错误的长度“!
//Create a new instance of RSACryptoServiceProvider.
using (RSACryptoServiceProvider RSA = new RSACryptoServiceProvider())
{
//Import the RSA Key inf