Trying to Encrypt a text message using RSA algorithm. To encrypt the message the key from client is required. How are the keys exchanged. I have studied few key exchange algorithms but could not find any example code.
Can some one guide to a tutorial, on how to exchange the keys on internet.
U can use this sample program for key exchange algorithm. Its a Diffie-Hellman Key Exchange between 2 Parties. Just try to understand what this algo is here.