This Python script provides a proof of concept for establishing secure communication between a client and server over a socket connection.
This script leverages Elliptic Curve Cryptography (ECC) for key exchange and Advanced Encryption Standard (AES) for encryption, ensuring confidentiality and integrity of data exchanged.
- Clone the repository (or just download the PoC script):
git clone https://github.com/h-alice/python-ecc-keyexchange.git
- Navigate to the project directory:
cd python-ecc-keyexchange
- Install the required dependencies:
# The project is only dependent on the `pycryptodome` library. pip install pycryptodome
- Run the server script:
python server.py
- Run the client script:
python client.py
The procedure is designed for Telepy.
If you want to use it in your own project, you may modify the script to fit your needs.