Skip to content

Latest commit

 

History

History
51 lines (33 loc) · 1.14 KB

README.md

File metadata and controls

51 lines (33 loc) · 1.14 KB

Assignment 1 - Authenticated and Secured Transport like TLS

How to set everything up

cd assignment1
virtualenv super
source ./super/bin/activate
pip install -r requirements.txt

This creates a virtual environment and installs the needed python packages.

How to execute everything

While still sourcing the virtual environment, go to the encryption folder

cd encryption

In the folder client is the file data.csv that is supposed to be encrypted, send to the server and decrypted. At the moment, it just contains a test string because the actual data send is to big to be pushed to the repo. Therefore, exchange the file with data.csv (name is hard coded, so please stick to it).

Open one bash terminal and start the server(delentture):

python3 server.py

Open one additional terminal and start the client(controlER)

python3 client.py

The Public/Private Key Pair

The Public/Private Key Pair for Server/Client was generated via openSSL.

openssl genrsa -out private.pem 2048 
openssl rsa -in .pem -outform PEM -pubout -out public.pem

Protocol

Protocol