C#使用AES加密/解密的库 [英] C# Libraries to encrypt/decrypt using AES

查看:467
本文介绍了C#使用AES加密/解密的库的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在.net框架中找不到aes库。
是否有外部库?

I couldn't find aes libraries in .net framework. Is there any external libraries?

谢谢

推荐答案

您没有提到使用哪个版本的框架,但是由于您没有立即找到 System.Security.Cryptography.AesManaged ,我想你使用的版本早于3.5。

You do not mention which version of the framework you are using, but since you did not immediately find System.Security.Cryptography.AesManaged, I guess you are using a version earlier than 3.5.

而是使用 System.Security.Cryptography.RijndaelManaged 。 Rijndael是由NIST标准化为AES的算法的名称。它完全相同的算法(除了可以使用AES不允许的Rijndael选择一些块长度和模式)。

Instead use System.Security.Cryptography.RijndaelManaged. Rijndael is the name of the algorithm that was standardized by NIST as AES. It is exactly the same algorithm (except that you can choose some blocklengths and modes with Rijndael that are not permitted with AES).

这篇关于C#使用AES加密/解密的库的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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