本文介绍了Rijndael在ASP.NET和Delphi中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

谁可以提供帮助?我正在尝试在Delphi应用程序和ASP.NET之间实现加密(纯文本)

通信。我的选择

是AES / rijndael-128。对于双方,我使用标准模块:


Delphi:来自cityinthesky的TDCP_rijndael组件(DCPcrypt加密组件

库v2)()


ASP.NET:Rijndael的标准库


双方都在工作,但他们做的不同!当我使用相同的密钥时,加密结果

和解密不匹配。现在我不知道是什么

i我做错了。


那里有谁可以给​​我正确的提示?

Who can help? I''m trying to implement an encrypted (plain text)
communication between a Delphi application and an ASP.NET. My choice
is AES/rijndael-128. For both sides, i use standard modules:

Delphi: TDCP_rijndael Component (DCPcrypt Cryptographic Component
Library v2) from cityinthesky (www.cityinthesky.com)

ASP.NET : Standard library of Rijndael

both sides are working, BUT they do different! The results in encryption
and decryption do not match when i use same keys. now i''ve no clue what
i am doing wrong.

Anyone out there who can give me the right hint??

推荐答案



首先要做的是找到第三个实现 - 这样你就可以很容易地找出你当前的实现中断了哪些。


那么如果你能发布C#代码就会有所帮助。使用加密很容易搞砸



Jon

The first thing to do is find a third implementation - that way you
can easily find out which of your current implementations is broken.

Then it would help if you could post the C# code. It''s easy to mess up
using encryption.

Jon






尝试Bouncy Castle:


我使用他们的Java加密库,效果非常好。


rossum

Try Bouncy Castle: http://www.bouncycastle.org/csharp/

I use their Java crypto library and it works very well.

rossum


这篇关于Rijndael在ASP.NET和Delphi中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

10-12 10:28