- Ensure client.py and server.py have the same host and port (by default localhost port 5022)
- Run server.py with 'python3 server.py' command
- Run client.py with 'python3 server.py' command
- Type away!!
- The server creates an RSA public and private key (using the .pem file generated with Keytool)
- The client connects to the server
- The server sends it's public key to the client
- The client creates an AES key and encrypts it with the RSA public key it received from the server
- The client sends this encrypted AES key to the server
- The server decrypts the AES key with its private RSA key
- All future messages are encrypted and decrypted using the AES key
- Only the server.py needs access to the mykey.pem file.
- A different .pem file could and should be used to replace mykey.pem in actual use.
- The AES key should be changed from 'zebrabluestripes'.