Password update
This commit is contained in:
@@ -3,65 +3,57 @@
|
||||
**CMD CHAT** is a new milestone in console communication.
|
||||
A fully anonymous chat between two clients, impossible to intercept or hand over.
|
||||
All data exists only in RAM and is wiped after the session ends.
|
||||
No logs, no traces, no compromise.
|
||||
No logs, no traces, no compromise.
|
||||
|
||||
---
|
||||
|
||||
## 🔒 Key Features
|
||||
|
||||
- Full anonymity
|
||||
- End-to-End encryption (RSA + symmetric key)
|
||||
- Data stored only in memory (RAM), deleted on exit
|
||||
- No logging, no persistence on disk
|
||||
- Easy to run via Python or CLI
|
||||
- Full anonymity
|
||||
- End-to-End encryption (RSA + symmetric key)
|
||||
- Data stored only in memory (RAM), deleted on exit
|
||||
- No logging, no persistence on disk
|
||||
- Easy to run via Python or CLI
|
||||
|
||||
---
|
||||
|
||||
## ⚙️ How It Works
|
||||
|
||||
1. The client generates an RSA key pair.
|
||||
2. The server creates a symmetric key.
|
||||
3. The client sends its public key to the server.
|
||||
4. The server encrypts the symmetric key and sends it back.
|
||||
5. The client decrypts and confirms the key.
|
||||
6. From that point, all communication is done via symmetric encryption.
|
||||
1. The client generates an RSA key pair.
|
||||
2. The server creates a symmetric key.
|
||||
3. The client sends its public key to the server.
|
||||
4. The server encrypts the symmetric key and sends it back.
|
||||
5. The client decrypts and confirms the key.
|
||||
6. From that point, all communication is done via symmetric encryption.
|
||||
|
||||
Everything happens in memory only. Nothing is written to disk.
|
||||
Everything happens in memory only. Nothing is written to disk.
|
||||
|
||||
---
|
||||
|
||||
## 🚀 Installation & Run
|
||||
|
||||
### Option 1: Python
|
||||
### Python
|
||||
|
||||
Install with pip:
|
||||
```bash
|
||||
pip install secured_console_chat
|
||||
````
|
||||
1. Clone the repository:
|
||||
`git clone https://github.com/emilycodestar/cmd-chat.git`
|
||||
`cd cmd-chat`
|
||||
|
||||
Run directly from Python:
|
||||
2. Create a virtual environment and install dependencies:
|
||||
|
||||
```python
|
||||
import asyncio
|
||||
import cmd_chat
|
||||
Linux / macOS:
|
||||
`python -m venv venv && source venv/bin/activate && pip install -r requirements.txt`
|
||||
|
||||
if __name__ == '__main__':
|
||||
asyncio.run(cmd_chat.run())
|
||||
```
|
||||
Windows (PowerShell):
|
||||
`python -m venv venv ; .\venv\Scripts\activate ; pip install -r requirements.txt`
|
||||
|
||||
### Option 2: CLI
|
||||
3. Start the server (set a password for client connections):
|
||||
`python cmd_chat.py serve 0.0.0.0 1000 --password YOUR_PASSWORD`
|
||||
|
||||
Start the server:
|
||||
4. Connect a client:
|
||||
`python cmd_chat.py connect SERVER_IP 1000 USERNAME YOUR_PASSWORD`
|
||||
|
||||
```bash
|
||||
cmd_chat serve localhost 5000
|
||||
```
|
||||
|
||||
Connect to the server:
|
||||
|
||||
```bash
|
||||
cmd_chat connect localhost 5000 tyler
|
||||
```
|
||||
Example (local run):
|
||||
`python cmd_chat.py connect localhost 1000 tyler YOUR_PASSWORD`
|
||||
|
||||
---
|
||||
|
||||
@@ -70,4 +62,3 @@ cmd_chat connect localhost 5000 tyler
|
||||
Here’s how it looks in action:
|
||||
|
||||

|
||||
|
||||
|
||||
Reference in New Issue
Block a user