C# Libraries to encrypt/decrypt using AES

被刻印的时光 ゝ 提交于 2020-02-21 11:59:09

问题


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

thanks


回答1:


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.

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).




回答2:


You'll find AES built into the framework in the System.Security.Cryptography namespace:

http://msdn.microsoft.com/en-us/library/system.security.cryptography.aes.aspx



来源:https://stackoverflow.com/questions/2994235/c-sharp-libraries-to-encrypt-decrypt-using-aes

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!