1. Use genrsa to generate keys from two primes 2. import newrsa to all your clients and server 3. Use the encrypt method like in myprojectclient with the public key before sending a message to the server 4. Use the deccrypt method like in myprojectserver with the private key after receiving a message from a client