I would like to encrypt the bytes coming back and forth on my socket by hand, in other words, i want to do the crypting and decrypting myself in the client and the server. What is the procedure to exchange pub/priv keys in a secure way? I pretty much want to do what HTTPS does in the browser level, on the socket level, but I would like to do it myself instead of using a SSLSocket that already does that for me. I would like to understand and learn instaed of taking it for granted in a high-level SSLSocket class.
Thanks!
Wow! From the comments here it is probably better to do a SSH tunnel and forget about it, right?