Original Post
Hello everyone, I'm in the process of adding encryption to my network library and just wanted to run this by you all to ensure it's a valid way of doing it. * Client sends its RSA public key in plain text to the server * Server encrypts its own public key using the client public key and sends it to the client * Client decrypts the message and uses the server public key to encrypt a random symmetric key * Server decrypts the message and now both client and server has the symmetric key (Note; there's a unique public/private key pair per connection) The symmetric key will then be used to encrypt all communication using Tiny Encryption or something like it. How does this sound; will it provide reasonable protection against snoopers and man-in-the-middle? Thanks