On Mon, 6 Oct 2003 16:29:00 +0100, "news.microsoft .com"
<au****@aussie. com> wrote:
I want to have one machine encypt a string value(in memory not disk), and
then pass that new value to another machine, where it will be decrypted back
to its original value.
I have no idea on this sort of stuff, but I figure it is possible.
Any good place I can go to read up on this, or perhaps grab some sample
code.
As much as Microsoft has worked to make encryption easy in .net, it's
still not very easy.
Look in the System.Cryptogr aphy namespace, particularly the
RSAServiceProvi der class.
The methodology is this:
1. Have the *receiving* machine generate an RSA key and send the
Public Key part of it to the sending machine as part of a request for
the string.
2. The sending machine encrypts the string with the public key it was
provided and sends it out.
3. The receiving machine decrypts the string using the private key it
has generated.