server chat
This project provides a secure and encrypted chat communication system between clients and a central server. It uses Python and the Fernet encryption library for end-to-end message security.
- Python 3.x
- Python packages: cryptography
- Clone this repository to your local machine:
git clone https://github.com/yourusername/encrypted_chat.git
- navigate to the project directory
cd encrypted_chat
- Modify the server.py file details copy your local ip address and paste it in server.py file ( open server.py file with = mousepad server.py )
- run the server.py python server.py
- now you will find encryption key and server listening status
- now open another terminal and navigate to encrypted_chat directory
- open the client.py file = mousepad client.py
- replace the existing key with the generated key from server and paste same ip address that you placed in server.py
- run the client.py python client.py
- now exchange messages securely from server to client
Usage Start the server and client, then follow the on-screen prompts to exchange encrypted messages.