Alice → Bob key Bob → Alice key DH ratchet step At risk (post-leak) Leaked key
⚠ Couldn't load the 3D engineThree.js failed to load from the CDN. Check your connection and reload.

Signal Double Ratchet: Messenger Encryption

End-to-end encrypted messengers such as Signal and WhatsApp don't reuse one secret key for a whole conversation — they run the Double Ratchet algorithm, deriving a brand-new key for every single message from a one-way hash chain, and periodically folding in a fresh Diffie-Hellman exchange. This simulator renders that key chain as a live 3D helix: sending messages advances the symmetric-key ratchet and spins off a new key node per message, a Diffie-Hellman ratchet step mints a fresh root key shown as a gold marker, and a simulated key-compromise event demonstrates the two properties that make the scheme resilient — 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).