Network Analysis & Protocols
Open Source

Tor Encrypted Messenger

C++JavaScriptBoost.AsioBoost.BeastTor NetworkSQLiteElectronNginx

A secure, decentralized messaging client operating exclusively over the Tor network. It utilizes C++ WebSockets for real-time, encrypted communication with an ephemeral token-based authentication system.

Tech Stack

C++JavaScriptBoost.AsioBoost.BeastTor NetworkSQLiteElectronNginx

System Metrics

Optimized Tor handshake routines for lower latency
High-concurrency async handling via Boost.Asio

Why Did I Build This?

"Mainstream messaging applications leak metadata and rely on centralized servers. I built this application to guarantee operational security (OpSec) by routing all traffic through the Tor anonymity network, ensuring messages are only visible to authenticated peers."

Architecture & Decisions

The backend is engineered in C++ using `Boost.Beast` for high-throughput WebSocket streams and `Boost.Asio` for asynchronous networking. User state is managed via a lightweight SQLite database and `nlohmann/json`. Authentication is handled via expiring ephemeral tokens. The frontend is packaged via Electron for local execution, communicating directly with the Nginx reverse-proxy facing the Tor network.

Key Features

  • 01.Tor network routing for absolute anonymity
  • 02.Real-time bidirectional WebSocket communication
  • 03.Ephemeral token-based session validation
  • 04.Asynchronous C++ backend architecture