Skip to content
FoxcolabMessenger
Glossary

What is Double Ratchet?

Double Ratchet: The Double Ratchet is the algorithm inside the Signal Protocol that gives every message a new key and refreshes keys as the conversation goes on.

Also called: Double Ratchet algorithm, Axolotl ratchet

Updated

The Double Ratchet algorithm is the part of the Signal Protocol that manages keys once two devices have started an encrypted conversation. It gives every single message its own encryption key and keeps replacing keys as people reply. Trevor Perrin and Moxie Marlinspike designed it in 2013, first under the name Axolotl, and it now protects messages for billions of people.

Why it is called a ratchet

A ratchet is a mechanism that turns only one way, like the ratchet spanner a mechanic uses. In cryptography, a ratchet pushes a key forward through a one-way function: you can compute the next key from the current one, but never work back to the previous one. Delete the old key and it is gone for good.

The two ratchets in the double ratchet algorithm

The first is a symmetric-key ratchet. Each side keeps a chain key and, for every message, runs it through a one-way function to produce a message key and the next chain key. The second is a Diffie-Hellman ratchet. Whenever the conversation changes direction, the replying device sends a new temporary public key, and both sides mix a fresh Diffie-Hellman result into their chains.

A short example

Ishaan sends Neha three messages in a row about where to meet before the match. Each uses a different message key from Ishaan's sending chain. When Neha replies, her message carries a new temporary public key, which turns the Diffie-Hellman ratchet and starts new chains on both sides. If an attacker had somehow copied Ishaan's keys before Neha's reply, that copy stops being useful once the new key material is mixed in.

What the Double Ratchet gives you

  • Forward secrecy: old message keys are deleted, so a stolen key cannot decrypt earlier messages.
  • Break-in recovery: after a compromise, fresh Diffie-Hellman exchanges restore secrecy for later messages.
  • Out-of-order delivery: messages that arrive late on a patchy connection can still be decrypted, because the algorithm keeps a limited set of skipped keys.

It does not, by itself, prove who you are talking to or hide metadata. Those jobs belong to other parts of the protocol and to the app that uses it.

Double Ratchet in Foxcolab

The Double Ratchet runs inside the Signal Protocol sessions that protect the text of Foxcolab's personal one-to-one chats between people. Each of the other person's devices has its own session, so a message to someone using two devices is encrypted once per device. Group chats, Teams, Spaces and chats with business accounts are protected by encryption in transit (TLS).

How Foxcolab handles security

Frequently asked questions

Who invented the Double Ratchet algorithm?

Trevor Perrin and Moxie Marlinspike designed it in 2013 for the app that became Signal. Its specification is published on signal.org.

Is the Double Ratchet the same as the Signal Protocol?

It is one part of it. The Signal Protocol also includes the initial key agreement that sets up a session; the Double Ratchet takes over after that.

Get Foxcolab for your family

Available on Google Play and the App Store. ₹49 once in India, with no subscription and no ads.