Rijndael在ASP.NET和Delphi中 [英] Rijndael in ASP.NET and Delphi

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

问题描述

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

通信。我的选择

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


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

库v2)( www.cityinthesky.com


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??

推荐答案

11月29日上午6:57,Iwan Budihalim < iwan_budiha ... @ visuallabs.net>

写道:
On Nov 29, 6:57 am, "Iwan Budihalim" <iwan_budiha...@visuallabs.net>
wrote:

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

通信。我的选择

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


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

库v2)( www.cityinthesky.com


ASP.NET:Rijndael的标准库


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

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

我做错了。


谁能给我正确的提示?
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


嗨Iwan,


我不知道你问题的答案,但你是否考虑通过COM暴露的C#dll来完成

Delphi方面。我们刚刚开始这样做,以便从Delphi获得对.NET数据库库的访问权限,并证明

非常成功。


干杯

Doug Forster


" Iwan Budihalim" < iw ************ @ visuallabs.netwrote in message

news:eb ************** @ TK2MSFTNGP06.phx .gbl ...
Hi Iwan,

I don''t know the answer to your question, but have you considered doing the
Delphi side via a COM exposed C# dll. We have just starting doing this to
gain access to the .NET database libraries from Delphi and it is proving
very successful.

Cheers
Doug Forster

"Iwan Budihalim" <iw************@visuallabs.netwrote in message
news:eb**************@TK2MSFTNGP06.phx.gbl...

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

通信。我的选择

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


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

库v2)( www.cityinthesky.com


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??



2007年11月28日星期三08:03:24 -0800(太平洋标准时间),Jon Skeet [C#MVP]"

< sk *** @ pobox.comwrote:
On Wed, 28 Nov 2007 08:03:24 -0800 (PST), "Jon Skeet [C# MVP]"
<sk***@pobox.comwrote:

>首先要做的是找到第三个实现 - 这样你就可以了轻松找出您当前的哪些实施方案已被破坏。
>The first thing to do is find a third implementation - that way you
can easily find out which of your current implementations is broken.



尝试Bouncy Castle: http ://www.bouncycastle.org/csharp/


我使用他们的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中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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