Home▸Cybersecurity▸Signal Double Ratchet: Messenger Encryption (2D)

Signal Double Ratchet: Messenger Encryption (2D)

Interactive 2D companion to the 3D Double Ratchet visualizer: watch the same symmetric-key chain and Diffie-Hellman ratchet that secure Signal and WhatsApp advance on a draggable, zoomable flat key-helix, and see forward secrecy and post-compromise self-healing play out after a simulated key leak.

Cybersecurity2DAdvanced60 FPS📱 Mobile-adapted⇄ 3D version
2d-exp-messengers-security ↗ Open standalone

This 2D companion to the 3D Double Ratchet visualizer drives the exact same session model: end-to-end encrypted messengers such as Signal and WhatsApp don't reuse one secret key for a whole conversation — they derive a brand-new key for every single message from a one-way hash chain, and periodically fold in a fresh Diffie-Hellman exchange. Sending messages advances the symmetric-key ratchet and spins off a new key node on the helix, a Diffie-Hellman ratchet step mints a fresh root key shown as a gold marker, and a simulated key-compromise event demonstrates forward secrecy (past keys stay unrecoverable because the hash chain can't run backward) and post-compromise security (the very next ratchet step heals the session even after a leak) — drawn here as a flat, draggable and zoomable key-helix instead of a rotating 3D scene.

⚙ Under the hood

Interactive 2D companion to the 3D Double Ratchet visualizer: drag to orbit and scroll to zoom a flat, projected key-helix while sending Alice↔Bob messages, triggering a Diffie-Hellman ratchet step, and simulating a key-compromise event — the same symmetric-key-chain and DH-ratchet session model as the 3D sim, driving forward secrecy and post-compromise self-healing live.

encryptionsignal-protocole2eekey-exchangeforward-secrecymessengers

2D · HTML5 Canvas 2D · 60 FPS target · runs fully client-side, no install

What did you find?

Add reproduction steps (optional)