Encryting and Decrypting between .Net and c++ 6.0

Y

Yair Nissan

Hi,

I'm trying to find a way to encrypt data (strings) from my client
application (c++ 6.0) and transfer it to my server's .Net web services
application. The web services must be able to decrypt the data, make some
manipulations on the decrypted data, encrypt the result, send it back to the
client who would decrypt it again.

Thanks,
YN
 
J

Jani Järvinen [MVP]

Yair,
I'm trying to find a way to encrypt data (strings) from my client
application (c++ 6.0) and transfer it to my server's .Net web services
application.

Sounds like you could use Microsoft CryptoAPI (CAPI) for this purpose. It is
available through both native Win32 code and .NET. Depending on your setup
and situation, you also need to figure out which encryption key(s) you are
going to use between the client and the server.

But remember that as it is a web service you a writing, using HTTPS (SSL)
might already be enough as then nothing is transferred in clear text on the
wire. In .NET, I also suggest that you take a look at the
System.Security.Cryptography namespace.

Here are some links that may prove to be helpful should you find CryptoAPI a
solution for you.

Platform SDK: Cryptography
http://msdn.microsoft.com/library/d...o/security/cryptography_portal.asp?frame=true

"Encrypting and decrypting data" form .NET This!
http://www.dotnetthis.com/Articles/Crypto.htm

Hope this helps.

--
Regards,

Mr. Jani Järvinen
C# MVP
Helsinki, Finland
(e-mail address removed)
http://www.saunalahti.fi/janij/
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top