如何在.NET PCL中解密AES256加密文本? [英] How to decrypt an AES256 encrypted text in a .NET PCL?

查看:153
本文介绍了如何在.NET PCL中解密AES256加密文本?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经搜索了一段时间,用于PCL实现System.Security.Cryptography命名空间提供的功能,并且遇到了不太令人满意的结果。我只在PCL程序集中真正需要DEcryption(非对称和对称),因为我可以在桌面上的常规.NET程序集中处理数据加密。



我尝试过:



有这样的工具吗?或者我应该努力做到这一点,并将可用的C / C ++代码调整为C#?

I've searched for some time for a PCL implementation of the features provided by the System.Security.Cryptography namespace, and have met with less than satisfactory results. I only truly need DEcryption (both asymmetric and symmetric) in a PCL assembly, as I can handle encryption of the data in a regular .NET assembly on the desktop.

What I have tried:

Is there such a tool available? Or should I look to doing it the hard way and adapt available C/C++ code to C#?

推荐答案

可能会看一下PCL Crypto库。这是一个NuGet包,它实现了最常见的加密内容。我无法保证它的安全性,因为我不知道它是否已通过审核,但它可能适用于您想要做的事情。



从软件包管理器控制台:

Might look at the PCL Crypto library. It's a NuGet package that implements the most common crypto stuff. I can't vouch for it's security as I don't know if it has been through an audit or not but it may work for what you want to do.

From Package Manager Console:
Install-Package PCLCrypto


这篇关于如何在.NET PCL中解密AES256加密文本?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆