Verify p2p node

Posted by mazzzzz on Stack Overflow See other posts from Stack Overflow or by mazzzzz
Published on 2010-03-27T21:35:55Z Indexed on 2010/03/28 13:03 UTC
Read the original article Hit count: 215

Hey guys, I have been working on a p2p namespace for some of my programs. I created a system to encrypt/decrypt the packets send/received with the class. I was using the basic public private key system: 1) encrypt the data with Symmetric encryption 2) encrypt the symmetric key with RSA. Then do the opposite when you decrypted..

I was wondering though, how would you verify if the packet was coming from where it said it was. I was going to use a basic certificate system (where you encrypt with your private RSA key, then they decrypt it with your public key), but I don't know how to do this with C#. I am using the RSACryptoServiceProvider class.

Does anyone know how do this? Thanks, Max

© Stack Overflow or respective owner

Related posts about c#

Related posts about network