How can I decrypt a string using AES algorithm in c#?
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: "56e84e9f634482开发者_如何学Python6bcfa439cda09e5e96" (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.
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.
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.
精彩评论