我想创建一个服务来使用任何非对称加密进行加密和解密。所以,基本上我将拥有一个公钥和一个私钥,并且我将拥有:
public interface ICryptoService
{
byte[] Encrypt(byte[] byteToEncrypt, int asymetricKey);
byte[] Decrypt(byte[] byteToDecrypt, int asymetricKey);
}
但是,在我的 CorePCL 项目中,使用 Profile 78 (.netFramework45+wphone8+monodroid+monotouch),我无法添加对 System.Security.Cryptography 的引用。
如何添加对任何 DLL 或可移植包的引用,以支持 PCL 78 使用任何非对称加密?有什么线索吗?
最佳答案
尝试使用pclcontrib项目提供了大量的 System.Security.Cryptography 命名空间。
关于mono - PCL 项目中的非对称密码学,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/25654444/