开发者

Delphi C# Communication encryption [duplicate]

开发者 https://www.devze.com 2023-03-01 04:20 出处:网络
This question already has answers here: 开发者_开发技巧 Closed 11 years ago. Possible Duplicate: Encrypted string From Delphi to C#
This question already has answers here: 开发者_开发技巧 Closed 11 years ago.

Possible Duplicate:

Encrypted string From Delphi to C#

I have one question,

what is the best solution to encrypt communication between two systems, one is developed in Delphi and one is developed in c#. I already tried that and had some problems, all is in this question but i did`t find solution.

Anyone can help?


Cryptography API: Next Generation (CNG) http://msdn.microsoft.com/de-de/library/aa376210.aspx

CNG is supported beginning with Windows Server 2008 and Windows Vista. As this is WINAPI it should easily work with Delphi, and for .NET there exists wrapper classes.

http://msdn.microsoft.com/en-us/magazine/cc163441.aspx

another Option is to create a COM Wrapper for your C# code. (maybe a bit less secure)


I think you can solve this by using HttpListener in .net app(old post how to enable ssl), in such way you would get communication based on http protocol.
On top of that you can use additional layers:
a) OpenRasta, lightweight RESTful library
b) Self hosted WCF

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号