Delphi C# Communication encryption [duplicate]
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
精彩评论