如何使用c#中的AES算法解密字符串? [英] How can I decrypt a string using AES algorithm in c#?

查看:144
本文介绍了如何使用c#中的AES算法解密字符串?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个来自我们客户的加密字符串。

此字符串使用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:

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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆