Skip to content

Latest commit

 

History

History
44 lines (37 loc) · 1.52 KB

README.md

File metadata and controls

44 lines (37 loc) · 1.52 KB

TODO

  • logs
  • improve functions
  • maybe add salt to messages/keys

Description

C++ Project that uses OpenSSL's cryptographic functions to encyrpt/decrypt messages and send/recieve messages using sockets.

You can use your existing OpenSSL compatible public/private key pair or generate a new one with keygen.sh

Dependencies

  • Unix shell
  • OPENSSL

Setting up for the first time

install openssl from your package manager

git clone https://github.com/EfeAraz/RSA-Socket;  
chmod +x setup.sh keygen.sh;  
./setup.sh;   

Server :

g++ ./src/server.cpp -o ./bin/server;./bin/server 8080;

Client :

example for localhost:

g++ ./src/client.cpp -o ./bin/client -lssl -lcrypto;./bin/client 127.0.0.1 8080 username; 

References:


This project is licensed under the terms of the MIT license.