Vanilla implementation of RSA Encryption in Client Server model in C++
- The client is the sender of the secret message and server receives and decrypts the message.
- The Encryption key length can be set in the server execution.
- Used a open source library for Big Integers in C++.
- Primes are randomely generated and tested using Miller-Rabin Primality test.
- Public Key and Modulus is shared with the Client
-
Clone the master git repository:
git clone --recursive https://github.com/iamarshsingh/server-client-encryption -
Navigate to src directory and execute the makefile:
./make -
Now using make file, produce binary files:
./make/server,./make/client -
Firstly execute:
./serverand then enter the desired encryption key primes length. -
Open a second terminal in the same directory and execute:
./client