RSA Key Exchange

  • Thread starter Thread starter Bryan
  • Start date Start date
B

Bryan

Ok .. im writing both a server and client aplication that need to be
encrypted. I want to use the RSA Key exchange technique .. i think it
resides in System.Security.Cryptography.RSAPKCS1KeyExchangeFormatter but im
not sure how to use this class.

If anyone can provide some code that does this i would appreciate it.

If possible, emailing the code (or links to info) would be best.

bryan<AT>beginningsend<DOT>net
 
Hi Bryan,

To come to the encription classes type as keyword "Rijndael" into the MSDN
search box

msdn.microsoft.com

Than you find a bunch of samples.

I hope this helps?

Cor
 
Thanks Cor,

I was hoping to find some code examples mostly regarding key exchange. I
understand cryptography somewaht well and i know how public key exchanges
work, i just cant figure out how to implement it.

like i said, any code is appreciated.. thanks in advanced guys

bryan
 
Hey Bryan,

In what setting do you want to know how they are exchanged? It doesn't
really matter how if you think about it.

Let's take a simple example.

we have client A and Server B. Client A wants to communicate securely with
Server B, so it initiates a request saying "Hey... lets talk..." server
responds back, "ok."

At this point is where we can do key exchange, how we want to do it is up to
us, because after all, the only thing we are going to exchange between them
is the public keys (yeah, again, try to crack 128 bit RSA key... see ya in
a couple years).

So client A says "Hey, here's my public key, encrypt all packets coming out
with it."

Server says. "OK. I want the same. here's my public key, I'll go ahead and
encrypt it in your public key to make it even more secure" (this way only
one public key is ever known).

Now each one has a public key, so secured communications continue. each
packet is encrypted with the opposing public key and decrypted by the proper
public key, then communications end.

The point being, its pretty simple, you can set it up anyway you want to,
because all your doing is exchanging keys. This assumes you set up your own
client and server. Now, if your trying to interface with an applicatoin
already in existance (i.e. IIS/HTTPS) then the provider will have a format
they want the key sent in.

So, you need to go to them... Or you need to explain what application your
trying to start secure communications with... otherwise, source code is
useless, because what I just said is jsut one method of doing PKE
 
Back
Top