Secured console chat with RSA & Fernet
Project description
Welcome to command line chat project [CMD CHAT]
What is this?
It is a console chat with message encryption.
How does it work?
All you need to do is run a web server and connect to it via a client.
Run
Create and activate a virtual environment in Python
pip install secured_console_chat
import asyncio
import cmd_chat
if __name__ == '__main__':
asyncio.run(cmd_chat.run())
Or
Start server:
cmd_chat serve localhost 5000
Connect to server:
cmd_chat connect localhost 5000 tyler
How does encryption work?
- The client generates a private key.
- The server generates a symmetric key.
- The client sends the public key to the server.
- The server encrypts the symmetric key and sends it to the client.
- The client encrypts the private key.
- After that, communication with the server occurs via the symmetric key.
Example
Known bugs
- Sometime WS just drop connection
- Client input message problem. To start input, you need to press enter first, only after that you got pop up with message. Tried to fix, but nothing worked.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file secured_console_chat-1.1.21.tar.gz
.
File metadata
- Download URL: secured_console_chat-1.1.21.tar.gz
- Upload date:
- Size: 7.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 547d44e2a49e219f240926cd976fc8ec3a372ce1f107895e833e1cf1659bf8c0 |
|
MD5 | d98a9ab84b241e8be655d8e60a0be741 |
|
BLAKE2b-256 | 3cbb0eb9704571b29e0ad62186bad8944fdcb641fbb936371b530ee55e3b7773 |
File details
Details for the file secured_console_chat-1.1.21-py3-none-any.whl
.
File metadata
- Download URL: secured_console_chat-1.1.21-py3-none-any.whl
- Upload date:
- Size: 8.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ee0b537551981a4522dea270a735d305f4e67b2d7c982e048935751f933b3fbd |
|
MD5 | c19ea78030ed5a33a1268730418a905a |
|
BLAKE2b-256 | 54e4facf50afb15d25f2138ebb6378db3b47261f6d06cad704b048e5d36b56d9 |