A real-time room-based chat system with end-to-end encryption designed to secure communication using modern cryptographic standards.
CryptiHub is a lightweight encrypted chat system built for secure communication over networks.
It supports:
- Room-based secure messaging
- Real-time multi-client communication
- Strong symmetric encryption pipeline
- 🔒 End-to-End Encryption (Fernet / AES-256)
- 🧵 Multi-client real-time chat via sockets
- 🛡️ Room-based authentication system
- 🔑 PBKDF2 key derivation (1.2M iterations)
- ⚡ Thread-safe server architecture
git clone https://github.com/pevinkumar10/CryptiHub.git
cd CryptiHubpip install -r requirements.txtsudo apt-get install python3-tkEdit:
server/modules/core.py
HOST = ""
PORT = 1234Edit:
client/client.py
HOST = ""
PORT = 1234python3 server/server.pypython3 client/client.py- PBKDF2-HMAC-SHA256
- 1,200,000 iterations
- Per-message random salt (16 bytes)
- 32-byte derived encryption key
- Fernet (AES-256)
- Message-level encryption
- Replay attack resistance via salts
- Room-based access control
- Username collision prevention
- Shared session key per room
This implementation uses shared symmetric keys, meaning:
- Server can potentially decrypt messages
- Not fully true E2EE
- Diffie-Hellman key exchange
- Ephemeral session keys
- Client-side key storage only
MIT License © 2025 PevinKumar A
