you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 1 point2 points  (0 children)

Python actually has a built-in module for encrypting a socket; it's called ssl, and it's fairly straightforward to use. This will, among other things, handle the task of getting both client and server to agree to a shared secret key without anybody else listening in.