By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
455,683 Members | 1,398 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 455,683 IT Pros & Developers. It's quick & easy.

encrypt a string, then decrypt it

P: n/a
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.

Nov 20 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
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.Cryptography namespace, particularly the
RSAServiceProvider 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.

Nov 20 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.