blob: 23ac584d493aa0d6a62aa2295f78e1de7c53cc59 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
|
# Secure P2P Chat Application
A secure P2P chat application with advanced mesh networking capabilities, designed for resilient and private communication.
## Key Features
- Mesh Networking Protocol
- Tor Integration
- Distributed Hash Table (DHT)
- Secure Communication Channels
- Health Monitoring Services
## Project Structure
```
.
├── network/
│ ├── __init__.py
│ ├── mesh.py
│ └── tor_manager.py
├── security/
│ ├── __init__.py
│ ├── crypto.py
│ └── memory.py
├── ui/
│ ├── __init__.py
│ └── chat_window.py
├── mesh_chat.py
├── test_health.py
└── libraries.html
```
## Required Dependencies
```python
# Install using pip
aiohttp
kademlia
pynacl
pysocks
pyspx
zstandard
```
## Running the Application
1. Install dependencies:
```bash
pip install aiohttp kademlia pynacl pysocks pyspx zstandard
```
2. Start the application:
```bash
python mesh_chat.py
```
3. Test health check:
```bash
python test_health.py
```
## Testing
- HTTP Health Check: Visit http://localhost:12345
- Health Status: Visit http://localhost:12345/health
|