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

user29964 picture user29964 · Jul 12, 2010 · Viewed 22.8k times · Source

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.

Answer

Filip Ekberg picture Filip Ekberg · Jul 12, 2010

Here are two complete code samples for you:

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.