且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

如何使用c#中的AES算法解密字符串?

更新时间:2023-02-17 16:57:57

以下是两个完整的代码示例:





您还可能会发现 c#实现AES加密在这里有趣的。



我发现另一个例子简单的加密和解密数据在C#中,他们只使用通过短语进行解密。 p>

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.

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.