找不到RSAEncryptionPadding

时间:2016-06-04 08:20:41

标签: c# encryption rsa padding monodevelop

我一直在尝试在C#中更改加密函数的填充和散列模式:

https://msdn.microsoft.com/en-us/library/mt132684(v=vs.110).aspx

我试过了:

using System.Security.Cryptography;
...
RSACryptoServiceProvider rsaAlg = new RSACryptoServiceProvider ();
byte[] encrypted = rsaAlg.Encrypt (
                      System.Text.ASCIIEncoding.Default.GetBytes (msg),
                      RSAEncryptionPadding.OaepSHA1);    

编译期间发生错误:无法找到类型或命名空间名称RSAEncryptionPadding。

如何更改填充?

0 个答案:

没有答案