How can I decrypt a string using AES algorithm in c#?

我是研究僧i 提交于 2020-01-11 05:27:09

问题


I have an encrypted string from one of our customers.
This string was encrypted using the AES method in Java.

The only thing I have is the key: "xxxxxxxxxxxxxxxxxxxxxxxx" (24 chars) and the encrypted text: "56e84e9f6344826bcfa439cda09e5e96" (32 chars). (This really is the only data I have)

I can't seem to find a method to decrypt this string.

Could anyone provide me with a working example.


回答1:


Here are two complete code samples for you:

  • How To: Encrypt and Decrypt Data Using a Symmetric (Rijndael) Key
  • How To: Encrypt Data With Salt (C#/VB.NET)

You might also find c# implementations of AES encryption here on SO interesting.

I found another example Simple encrypting and decrypting data in C# where they use only the Pass Phrase to decrypt.




回答2:


Please go through this article "Simple Cryptographer - Simple DES/AES Implementation in C#"

link: http://www.codeproject.com/KB/recipes/Simple_Cryptographer.aspx

Hope this article will help you.



来源:https://stackoverflow.com/questions/3226813/how-can-i-decrypt-a-string-using-aes-algorithm-in-c

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