Assignment for KRY FIT VUT university project: DH and ECDH.
Description: Implementation of DH and ECDH key exchange algorithm.
client.py - Client side loader
server.py - Server side loader
controlFunctions.py - Helpper functions for running client/server side, communication and parsing arguments
DHexchange.py - Implementation of DH exchange algorithm
ECDHexchange.py - Implementation of ECDH exchange algorithm
properties.py - Basic script settings
ec.py - Eliptic curves arithmethic operations
231598.pdf - Brief project documentation
Scripts server.py and client.py are runnable.
python3.8 [client.py| server.py] --port < PORT> [--ec]
client.py or server.py: To run server or client side script.
--port <PORT> or -p <PORT>: Specifies the port number (required).
--ec: Enables ECDH mode. If omitted, the DH mode is used.
Example usage:
python3.8 server.py --port 25565 --ec
python3.8 client.py --port 25565 --ec
Makefile can be also used to run with Makefile predefined port:
make server
make client
or
make server EC=1
make client EC=1