encrypt with C# and decrypt with C++
From: danc (danc_at_discussions.microsoft.com)
Date: 02/11/05
- Previous message: Nicole Calinoiu: "Re: Code Access Security ASP.NET"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Date: Fri, 11 Feb 2005 12:53:21 -0800
I have a C# web application that will communicate with several C++ clients
(everything on Windows). The data should be stored encrypted at the web
application and occasionally sent to specific clients. Ideally, only the
clients, which will be carefully locked down, should be able to decrypt the
data; the web application should only be able to encrypt the data to store
and send it and can never decrypt it (even if somebody completely hacked the
web app and database).
1. What encryption SDKs are compabible between C# and C++? Can I use the
cryptography functions in .NET and the Windows Crypto API on C++ and are the
generated byte streams compatible?
2. Can I use public key algorithm to encrypt using private key and give the
clients the public key to decrypt? From what I can tell in other posts, it
seems that this may not be possible. If not, any alternative suggestions? I
would prever avoiding having to do any reencryption once the data is stored
because that would mean I need a decryption key at the web server.
I want to keep this simple but absoutely secure (yeah, I know these are
mutually exclusive requirements).
Thanks in advance,
Dan
- Previous message: Nicole Calinoiu: "Re: Code Access Security ASP.NET"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|