Skip to content

pevinkumar10/CryptiHub

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CryptiHub Banner

🔐 CryptiHub | Secure Encrypted Chat System

A real-time room-based chat system with end-to-end encryption designed to secure communication using modern cryptographic standards.


📌 Overview

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

✨ Features

  • 🔒 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

⚙️ Installation

📥 Clone Repository

git clone https://github.com/pevinkumar10/CryptiHub.git
cd CryptiHub

📦 Install Dependencies

Windows:

pip install -r requirements.txt

Linux:

sudo apt-get install python3-tk

⚙️ Configuration

🖥️ Server Config

Edit:

server/modules/core.py
HOST = ""
PORT = 1234

💻 Client Config

Edit:

client/client.py
HOST = ""
PORT = 1234

🚀 Usage

▶️ Start Server

python3 server/server.py

💬 Start Client

python3 client/client.py

🔐 Security Architecture

1. Key Derivation

  • PBKDF2-HMAC-SHA256
  • 1,200,000 iterations
  • Per-message random salt (16 bytes)
  • 32-byte derived encryption key

2. Encryption Layer

  • Fernet (AES-256)
  • Message-level encryption
  • Replay attack resistance via salts

3. Authentication Model

  • Room-based access control
  • Username collision prevention
  • Shared session key per room

⚠️ Limitations

This implementation uses shared symmetric keys, meaning:

  • Server can potentially decrypt messages
  • Not fully true E2EE

Recommended Improvements:

  • Diffie-Hellman key exchange
  • Ephemeral session keys
  • Client-side key storage only

📜 License

MIT License © 2025 PevinKumar A

About

This is a secure groupchat tool which contains encryption/decryption ,authentication and autherization.

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages