mono - PCL 项目中的非对称密码学

标签 mono cryptography xamarin mvvmcross portable-class-library

我想创建一个服务来使用任何非对称加密进行加密和解密。所以,基本上我将拥有一个公钥和一个私钥,并且我将拥有:

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/

相关文章:

Android 垃圾收集运行过于频繁

android - 恢复 Android 状态时崩溃 - 无法转换 AbsSavedState

.net - 如何从 Mono 的 WebKitSharp 调用 JavaScript?

macos - MAC 上的 Visual Studio 2019 上的 GTK# 工具箱为空

java - 如果针对 Android 3.0 及更高版本,使用 SpongyCaSTLe 比使用 BouncyCaSTLe 有优势吗?

xamarin - 如何支持 Xamarin 表单中的辅助功能字体大小?

.net - 用Mono中的NuGet打包项目未实现错误

android - 为什么 Android Debug模式会删除我的应用程序首选项?

c# - 从 C# 到 C++ 的加密/解密

Java - 通信器中的公钥基础设施实现