如何使用c#中的AES算法解密字符串? [英] How can I decrypt a string using AES algorithm in c#?
问题描述
此字符串使用Java中的AES方法进行了加密。
我唯一需要的是:xxxxxxxxxxxxxxxxxxxxxxxx(24个字符)和加密文本:56e84e9f6344826bcfa439cda09e5e96(32个字符)。 (这真的是我唯一的数据)
我似乎找不到解密这个字符串的方法。
$ b $任何人都可以为我提供一个工作的例子。
以下是两个完整的代码示例:
您还可能会发现 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:
- 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.
这篇关于如何使用c#中的AES算法解密字符串?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!