Technical Deep Dive

The Cryptographic Architecture of Zevra

A complete technical breakdown of how Zevra achieves zero-knowledge, end-to-end encrypted real-time communication. Engineered by Bazil Suhail using SRP-6a, X25519, Ed25519, and AES-256-GCM.

Encryption Pipeline

How Zevra Encrypts Every Message

From authentication to delivery, every step in Zevra's pipeline is designed to keep your data confidential and authenticated.

01
Phase 01

SRP-6a Authentication

When you sign in to Zevra, the Secure Remote Password protocol ensures your password never travels over the network. The client generates a proof (A) and verifier (M1) while the server responds with its own proof (B, M2). Both sides derive the same session key without either revealing the password.

Password never transmitted in plaintext
Resistance to offline dictionary attacks
Mutual authentication between client and server
Per-session salt and ephemeral values
02
Phase 02

X25519 Key Exchange

Every Zevra chat session generates ephemeral X25519 key pairs. The Curve25519 Diffie-Hellman protocol establishes a shared secret between two parties without any prior contact. Even if an attacker intercepts all traffic, they cannot derive the shared secret without solving the elliptic curve discrete logarithm problem.

Elliptic Curve Diffie-Hellman (ECDH)
128-bit security level
Ephemeral keys per session (forward secrecy)
Constant-time implementation resistant to timing attacks
03
Phase 03

Ed25519 Digital Signatures

Every message and key exchange in Zevra chat is signed with Ed25519 keys. This ensures authenticity: you can verify that a message genuinely came from your contact and was not tampered with in transit. The signature is fast to generate and verify, adding negligible overhead to real-time communication.

EdDSA signatures for message authenticity
Tamper-proof message delivery
Non-repudiation: sender cannot deny their message
Compact 64-byte signatures
04
Phase 04

AES-256-GCM Encryption

The actual message content is encrypted with AES-256-GCM, the gold standard for symmetric encryption. GCM mode provides both confidentiality and integrity: each message is encrypted and authenticated, meaning any modification is detected and rejected. Your plaintext never exists on Zevra's servers.

256-bit key size (brute-force infeasible)
Authenticated encryption (confidentiality + integrity)
Random IV per message prevents pattern analysis
Hardware-accelerated AES-NI support
System Topology

Zevra Multi-Node Architecture


    ┌──────────────┐     ┌──────────────┐     ┌──────────────┐
    │   Client A   │     │   Client B   │     │   Client C   │
    │  (Browser)   │     │  (Browser)   │     │  (Browser)   │
    └──────┬───────┘     └──────┬───────┘     └──────┬───────┘
           │ X25519/AES-256     │ X25519/AES-256     │ X25519/AES-256
           │                    │                    │
    ───────┼────────────────────┼────────────────────┼───────
           │                    │                    │
    ┌──────▼────────────────────▼────────────────────▼───────┐
    │                    Load Balancer                        │
    └──────┬────────────────────┬────────────────────┬───────┘
           │                    │                    │
    ┌──────▼───────┐    ┌──────▼───────┐    ┌──────▼───────┐
    │   Node 1     │    │   Node 2     │    │   Node 3     │
    │  (Stateless) │    │  (Stateless) │    │  (Stateless) │
    └──────┬───────┘    └──────┬───────┘    └──────┬───────┘
           │                    │                    │
    ───────┼────────────────────┼────────────────────┼───────
           │                    │                    │
    ┌──────▼────────────────────▼────────────────────▼───────┐
    │              Redis (Pub/Sub + BullMQ)                  │
    │         Message Queues + Session State                 │
    └────────────────────────────────────────────────────────┘
              

Every message is encrypted client-side before transmission. Zevra servers process only ciphertext.

Infrastructure

Real-Time Delivery at Scale

Zevra's backend is built for millions of concurrent encrypted chat sessions with sub-10ms delivery.

Redis Pub/Sub

Real-time message routing through Redis channels. Each connected client subscribes to their personal channel. Messages are delivered in microseconds with at-most-once delivery semantics, ensuring no duplicates in your Zevra chat.

BullMQ Workers

Background job processing for message queuing, delivery retries, and push notifications. BullMQ provides reliable, Redis-backed job queues with rate limiting, retries, and priority scheduling for Zevra's multi-node architecture.

Multi-Node Scaling

Zevra's backend runs as a cluster of stateless nodes behind a load balancer. Session state lives in Redis, allowing any node to handle any request. This architecture enables horizontal scaling to millions of concurrent encrypted chat sessions.

Zero-Knowledge Server

Zevra's servers are designed to be zero-knowledge by construction. They store only encrypted blobs they cannot decrypt. Even database dumps yield nothing but ciphertext. Server compromise does not equal data compromise.

Platform Matrix

Zevra vs Other Encrypted Chat Platforms

FeatureZevraWhatsAppSignal
Password TransmittedNeverHashedNever
Key StorageClient-side onlyServer backupClient + optional backup
Encryption ProtocolAES-256-GCM + X25519Signal ProtocolSignal Protocol
AuthenticationSRP-6aPhone numberPhone number
Open SourceFully auditablePartialFully auditable
Video ConferencingE2EEE2EEE2EE
Zero-Knowledge ServerYesNoNo

See the Architecture in Action

Experience Zevra's zero-knowledge encrypted chat for yourself. Every message is sealed with the cryptographic pipeline described above.