End-to-End Encryption in Chat Apps: How It Works, and WhatsApp vs Signal (2026)
When Emma texts her brother Noah, the message passes through a company's computers. End-to-end encryption is the reason that company cannot read it.
This post explains how it works in 2026, step by step and with small examples. Then it compares WhatsApp and Signal.
A lot changed from late 2025 to late 2026:
- Signal added protection against future quantum computers to every message.
- Signal and Messenger joined WhatsApp in checking keys automatically.
- A group standard called MLS reached texting between iPhone and Android, in a test version.
How to read this post. It has 15 sections in four groups:
- The basics. Sections 1 to 3: what end-to-end encryption means, what it protects, and the keys.
- How it works. Sections 4 to 9 follow a message. They cover starting a chat and the new key for every message. Then they cover devices, groups, key checks and backups.
- Apps and rules. Sections 10 to 12: WhatsApp vs Signal, other apps, and laws.
- What to do. Sections 13 to 15: tips, sources and where to go next.
TL;DR:
- Only the two phones can read the message. The server carries locked messages that it cannot open.
- Each message gets a new key. A thief who steals one key opens only a few messages. Later messages become safe again on their own.
- Protection against quantum computers has arrived. Signal added it to the start of a chat in 2023. It added it to every message in 2025. Apple's iMessage added it in 2024.
- Most real attacks go around the encryption. Attackers use metadata, which is who talks to whom and when. They also use cloud backups, spyware and fake links.
- WhatsApp vs Signal. Both lock message text with the same core method. Signal collects less data and publishes its code. It is also ahead on quantum protection.
1. What End-to-End Encryption Means
Encryption turns a readable message into scrambled data. Only someone with the right key can turn it back. A key is a secret number, usually 32 bytes long.
The readable form is called plaintext. The scrambled form is called ciphertext. "Mom's birthday is Friday" might become "8f3a91c0d7e2b4...", which means nothing without the key.
Many apps lock a message only on its way to the company's server. The server then opens it and can read it. Then it locks the message again for the next step.
This is called encryption in transit.
End-to-end encryption, or E2EE, is stronger. The message is locked on the sender's phone and unlocked only on the receiver's phone. The keys live only on those two "ends".
The server is the company's computer that passes messages along. With E2EE it holds no key that opens them.
Here is the example used in the whole post. Emma lives in Chicago and her brother Noah lives in Denver.
On a Sunday evening Emma types a message to Noah: "Mom's birthday is Friday. Can you call her?" Then she taps send.
- On Emma's phone. The app locks the text with a key that only Emma's and Noah's phones know.
- On the server. The company stores a block of ciphertext and a delivery address. It cannot read the text.
- On Noah's phone. The app opens the block and shows the words.
Figure 1. The server stores a locked message and passes it on. Only the two phones hold keys that open it. The server still sees some facts about the message, such as who it is for and when it was sent.
Most big chat apps build E2EE on the Signal Protocol. It is a set of rules for making keys and locking messages, first written for the Signal app.
In 2023 Meta said WhatsApp, Messenger and Instagram direct messages all used it. Instagram later removed its encrypted chats, as the section on other apps explains.
2. What It Protects and What It Does Not
E2EE protects the content of a message, the words and photos inside it. Three groups cannot read the content:
- the company that runs the server,
- a hacker who breaks into the server,
- anyone who copies the traffic on the network.
E2EE does not protect everything.
Metadata is data about a message, not the message itself. For Emma's text, the metadata says:
- the message went from Emma to Noah,
- it was sent on Sunday at 7:42 pm,
- it was 120 bytes long,
- it came from a certain IP address, the network address of her phone.
The server needs some of this to deliver the message. Signal can hide the sender from its own server with a feature called sealed sender, explained with the keys below.
Researchers keep finding ways to learn metadata from both big apps:
- Delivery receipts. A 2024 paper called Careless Whisper showed an attack on WhatsApp and Signal. The attacker sends hidden reactions to a person's messages. The person's phone answers each one with a delivery receipt, but shows nothing on screen.
- What the receipts show. The timing of those answers shows when the phone is online and when its screen is on. It also shows how many devices the person uses.
- Finding accounts. In 2025, researchers in Vienna asked WhatsApp's servers about billions of phone numbers. The servers said which numbers had accounts. In this way the researchers listed about 3.5 billion WhatsApp accounts.
- Prekeys. A 2025 paper called Prekey Pogo found privacy problems in how WhatsApp hands out the keys that start a chat. Prekeys are explained in the next section.
E2EE also does not cover these cases. In each one, the message is read where it is not locked:
- Backups. A cloud copy of a chat is safe only if the backup is also end-to-end encrypted. The backups section covers this.
- The phone itself. Spyware is a hidden program on the phone that reads the screen and the stored messages. Spyware on Emma's phone reads her messages after the app opens them. Encryption cannot help once an end is broken.
- Linked devices. An attacker who links his own laptop to Emma's account receives her new messages like any of her devices. The section on many devices describes a 2026 warning about this.
- Reported messages. When a person reports a chat, the phone itself can send recent messages to the company. This is how WhatsApp's report feature is usually described.
- Cloud AI features. When an AI summary runs on the company's computers, the text leaves the phone. WhatsApp's Private Processing and Apple's Private Cloud Compute run such work on locked server hardware. The companies say even their own staff cannot see the text there. That is a different promise from E2EE, because the text does leave the phone.
- Other apps on the phone. Google says an app with permission to read notifications or SMS can read Google Messages chats, even encrypted ones.
Figure 2. The lock covers only the trip between the phones. A message can still be read in four other places:
- on a phone with spyware,
- in a cloud backup that is not encrypted,
- on a linked laptop that belongs to an attacker,
- in an AI service that runs on the company's computers.
3. The Keys in Plain Words
3.1 Two keys that work as a pair
Chat apps use public-key cryptography. Keys come in pairs:
- the public key can be shown to anyone, like a home address,
- the private key never leaves the phone.
Emma mixes her private key with Noah's public key. Noah mixes his private key with Emma's public key. Surprisingly, both get the same secret.
That secret never crosses the network, so nobody watching the network learns it. The method is called Diffie-Hellman, after the two people who published it in 1976.
The paint picture shows the idea. Mixing paint is easy, but taking a mix apart into its colors again is not possible.
Figure 3. Emma and Noah each keep one color secret. They send only their mixes across the network. Each one adds the secret color to the other's mix, and both reach the same final color.
A watcher sees only the two mixes and cannot take them apart.
Here is the same idea with small numbers. Real keys use numbers about 77 digits long. "mod 23" means "the remainder after dividing by 23".
- Both agree in public on two numbers, 5 and 23.
- Emma picks a secret, 4. She sends Noah 5⁴ mod 23. That is 625 mod 23, which is 4.
- Noah picks a secret, 3. He sends Emma 5³ mod 23. That is 125 mod 23, which is 10.
- Emma computes 10⁴ mod 23, which is 18.
- Noah computes 4³ mod 23, which is also 18.
A watcher saw 5, 23, 4 and 10. To get 18, the watcher must find Emma's secret 4 or Noah's secret 3. With 77-digit numbers, no computer known today can do that.
Real chat apps use a faster form of this math built on elliptic curves. The idea is the same.
A key pair can also sign a piece of data. The owner uses the private key to make a short proof, called the signature. Anyone can check that proof with the public key.
If the data changes by even one letter, the check fails.
3.2 The keys each phone uploads
Noah's phone may be switched off when Emma writes for the first time. So each phone makes some keys ahead of time and uploads only their public halves to the server. A key uploaded before anyone needs it is called a prekey.
- Identity key. A long-term key pair that stands for Noah's phone. It rarely changes. Safety numbers, which people compare to check a chat, are built from it.
- Signed prekey. A key pair that is replaced every few weeks. Noah's identity key signs it, so Emma's phone can check that it really belongs to Noah.
- One-time prekeys. A batch of key pairs. Each one starts one new chat and is then deleted. Because it is deleted, a thief who later steals Noah's other keys still cannot open that first message. If the server runs out of one-time prekeys, a chat can still start without one.
- Post-quantum prekeys. Since 2023, Signal also uploads prekeys for a method that resists quantum computers. There is one "last resort" key, used when the others run out, and a batch of one-time ones. The identity key signs all of them.
3.3 The keys made during a chat
During a chat, the phones make short-lived keys in a chain:
- Root key. The base secret of the chat. It changes as Emma and Noah take turns writing.
- Chain keys. One for sending and one for receiving. Each is made from the root key and moves forward one step per message.
- Message keys. One per message. Each is made from a chain key, used once and then deleted.
3.4 Sealed sender
Sealed sender is a Signal feature from 2018. Emma's app puts her name inside the locked envelope instead of on the outside. So the server sees who should get the message, but not who sent it.
Noah's phone opens the envelope and checks a short certificate. A certificate is a small note signed by Signal that says "this account is real". It proves the sender is a real Signal user without telling the server who it is.
The server can still see the IP address the message came from.
A similar name means something else in groups. Sender Keys is a method WhatsApp uses for group chats, described in the group chats section. It has nothing to do with sealed sender.
4. Starting a Chat: From X3DH to PQXDH
Emma has never messaged Noah on this app, and his phone is off. Before her first message can be locked, the two phones need a shared secret.
4.1 X3DH, the classic method
The classic method is X3DH, short for "Extended Triple Diffie-Hellman". It does the Diffie-Hellman mixing from the keys section three or four times, each time with a different pair of keys.
- Fetch. Emma's app asks the server for Noah's prekey bundle. The bundle is his identity key, his signed prekey and one one-time prekey. The server then deletes that one-time prekey.
- Check. Emma's app checks that Noah's identity key really signed the signed prekey.
- Combine. Emma's app makes a fresh key pair just for this chat. It mixes her keys with Noah's in three or four pairs, then combines the results into one shared secret.
- Send. Her first message carries her public keys. It also says which of Noah's prekeys she used.
- Match. When Noah's phone wakes up, it does the same mixing from its side and gets the same secret.
4.2 Why quantum computers matter
A quantum computer uses physics to do some kinds of math far faster than a normal computer. A large one could break the elliptic-curve math that X3DH uses. No such computer is publicly known today.
The worry is called harvest now, decrypt later. Say someone records Emma's locked messages in 2026 and stores them. If a large quantum computer appears in 2040, they could open the old recordings then.
4.3 PQXDH, the post-quantum method
In September 2023 Signal replaced X3DH with PQXDH. The name means "post-quantum X3DH". It runs the same five steps and adds one more ingredient.
That ingredient is a KEM, short for "key encapsulation mechanism". Emma's phone picks a random secret and locks it with Noah's post-quantum public key. Only Noah's phone can open it.
As far as anyone knows today, a quantum computer cannot break this lock.
Signal's PQXDH uses a KEM called Kyber. In 2024 NIST, the US standards body, published Kyber as a standard under the name ML-KEM.
The final secret mixes the classic result and the Kyber result. This design is called hybrid. To read Emma's chat, an attacker must break both the classic curve math and Kyber.
Signal also says what PQXDH does not cover. The identity check still uses curve math. So PQXDH cannot stop an attacker who already has a quantum computer and pretends to be Noah while the chat is happening.
Figure 4. Starting a chat. Noah uploaded his public keys earlier, so Emma can start while his phone is off. The classic part and the post-quantum part are mixed into one secret.
5. A New Key for Every Message: The Double Ratchet
After the first message, a method called the Double Ratchet takes over. A ratchet is a tool that turns only one way. Here it means keys that move forward and can never be wound back.
5.1 The first ratchet: a new key per message
The first ratchet uses a one-way function. It turns one number into another, and it cannot be run backward. Given the output, nobody can find the input.
Emma's phone runs her sending chain key through the one-way function each time she sends a message. Each run gives two things:
- a message key for this message,
- the next chain key.
Then her phone deletes the old keys. Say Emma sends three messages in a row:
| Message | Chain key used | Message key | After sending |
|---|---|---|---|
| "Mom's birthday is Friday" | chain key 1 | message key 1 | keys 1 deleted |
| "Can you call her?" | chain key 2 | message key 2 | keys 2 deleted |
| "She misses you" | chain key 3 | message key 3 | keys 3 deleted |
Now say a thief steals chain key 2. The thief can make message key 2 and the keys after it. But the thief cannot go back to message key 1, because the function only runs forward.
This is called forward secrecy. Old messages stay safe when a later key leaks.
5.2 The second ratchet: healing after a theft
The second ratchet is a Diffie-Hellman step. When Noah replies, his phone makes a fresh key pair and sends the public half with his message. Both phones mix it into the root key, and new chains start from there.
This gives post-compromise security, also called self-healing. Here is an example:
- On Monday, spyware copies Noah's chat keys.
- On Tuesday, the spyware is removed.
- On Wednesday, Emma and Noah each reply once. Each reply brings a fresh key pair that the thief never saw.
- So the thief cannot follow the new chain. Wednesday's messages are safe again.
Healing has a limit. It works against a thief who only reads. A thief who also sends messages, pretending to be Noah, can put in key pairs of his own and keep up with the chain.
Figure 5. Each message uses its own key, made by moving a chain forward. Each reply adds a fresh key pair that starts new chains. In 2025 Signal added a post-quantum ratchet beside it.
5.3 SPQR and the Triple Ratchet (2025)
PQXDH protected the start of a chat. Later keys grow from that protected secret, so recorded traffic stays safe. But the healing step used only curve math.
So a thief with a quantum computer, who stole the chat keys once, could follow the chain forever. In October 2025 Signal fixed this with the Sparse Post-Quantum Ratchet, or SPQR.
SPQR runs a post-quantum key exchange from time to time during the chat. It uses ML-KEM-768, the standard form of Kyber.
These keys are large. An ML-KEM-768 public key is 1,184 bytes. That is about 37 times the 32-byte keys of the classic method.
So Signal cuts each key into small pieces and sends one piece with each normal message. The new keys arrive a little at a time, which is why the method is called "sparse". This keeps the extra data low on slow networks.
The Triple Ratchet runs the Double Ratchet and SPQR side by side. Both feed into each message key, so an attacker must break both the curve math and ML-KEM.
Users do not need to turn it on. Signal describes it in revision 4 of its Double Ratchet document, from November 2025.
Signal said it would make SPQR required once every Signal app supports it. By November 2026 we found no public sign that this has happened.
Proofs. A formal proof is a math argument that a computer checks step by step. Signal checked the design of SPQR with a proof tool. It also checks its code with automatic proofs on every new build.
In November 2026, a Google DeepMind tool called AlphaProof Code made computer-checked proofs about Signal's core code. A news report says the proofs cover PQXDH and the Triple Ratchet. They show forward secrecy and self-healing.
The proofs do not cover attacks that measure timing or power use.
6. Many Devices
Emma uses her phone, a laptop and a tablet. Noah uses a phone and a laptop. Each device has its own keys and its own chats with every other device.
So "send to Noah" really means "send a locked copy to each of Noah's devices, and to each of Emma's other devices". For one message from Emma's phone, that is four locked copies:
- Noah's phone,
- Noah's laptop,
- Emma's laptop,
- Emma's tablet.
Figure 6. Emma taps send once. Her phone locks four copies, one for each device, each with that device's own keys. The server delivers each copy to its device.
Signal's rules for many devices are called Sesame, from 2017. The sender locks one copy per device.
What if Noah adds a new tablet? Emma's list of his devices is now out of date, so the server rejects her message. Her phone updates its list and sends again, now with a copy for the tablet.
WhatsApp moved to a similar design in 2021. Each device has its own identity key and gets its own copy. One phone can link up to four other devices.
The risk of linked devices. A linked device is a laptop or tablet added to the account. The owner adds it by scanning a QR code with the phone. Whoever controls a linked device gets every new message, with no encryption to break.
In March 2026 the FBI and CISA, the US cybersecurity agency, gave a warning. Russian intelligence services had taken over thousands of messaging accounts, mostly on Signal. They did not break the encryption. Instead they did two things:
- They sent fake links and QR codes. When a victim scanned one, it linked the attacker's device to the victim's account.
- They tricked people into giving up PINs and login codes.
7. Group Chats
Emma starts a family group with Noah and their parents, Linda and Mark. Say each of the other three has a phone and a laptop, and Emma has her laptop and tablet as before.
The simple way is to lock every group message separately for every device. For Emma, that is 6 copies for the other members and 2 for her own devices, so 8 copies of every message. The cost grows with every new member and every new device.
7.1 Sender Keys
Sender Keys cut this cost:
- Each member makes one sending key for the group.
- Each member shares that key once with every other member, through the normal one-to-one chats.
- After that, Emma locks each group message only once. The server copies the single locked message to every device.
So Emma's phone locks 1 copy instead of 8.
Emma's sender key also moves forward with each message, like the first ratchet. So old group messages stay safe if a key leaks.
But a sender key does not heal itself. A thief who steals Emma's sender key can read all her new group messages until she makes a new one.
When someone leaves the group, every remaining member must make and share a new sender key. Otherwise the person who left could still read new messages.
WhatsApp groups use Sender Keys, and the 2021 change for many devices kept them. Other sources say Signal and Messenger also use Sender Keys for groups. We could not find a dated Signal announcement of that.
Signal also protects the group itself. Since 2019, the group's name, members and picture are stored on Signal's server in locked form. Members can prove they belong to the group without the server learning who they are.
7.2 MLS
MLS stands for Messaging Layer Security. It is an internet standard for group encryption, published in July 2023 as RFC 9420. Many companies designed it together, so that different apps can use the same method.
MLS puts the members' keys in a tree. For Emma's family of four:
- The four people are the leaves at the bottom: Emma, Noah, Linda and Mark.
- The middle has two keys. "Emma + Noah" is known only to Emma and Noah. "Linda + Mark" is known only to Linda and Mark.
- The top has the group secret, known to all four. Messages are locked with keys made from it.
Now Mark leaves. Mark knew every key on his path to the top, so those keys must change. Linda makes the change:
- She replaces the "Linda + Mark" key with a new key that only she knows.
- She makes a new group secret.
- She locks the new group secret once with the "Emma + Noah" key. Emma and Noah can both open that one copy.
The saving grows with the group. In a group of 1,000 people, the path from a leaf to the top has about 10 steps. So a change sends about 10 new keys instead of 999 separate ones.
After each change, every member moves to the new group secret. MLS also locks the name of the sender of each message. The server can still see the group's ID and how many changes the group has had.
Figure 7. Sender Keys: each member shares one sending key, then locks each message once. MLS: keys sit in a tree, so a change replaces only the keys on one path.
Who uses MLS by 2026:
- Phone texting. RCS is the texting standard from phone carriers that replaces SMS. GSMA is the body for the mobile industry. In March 2025 it based RCS encryption on MLS. In May 2026 Apple and Google began a test of encrypted RCS between iPhone and Android.
- Limits of the RCS test. It needs iOS 26.5, a carrier that supports it and the latest Google Messages. The official posts do not name MLS, but news reports say the test uses the MLS-based standard. It is not confirmed whether group chats are covered.
- Discord. Its DAVE method, from 2024, uses MLS for voice and video calls. By May 2026 every call was end-to-end encrypted, except calls in Stage channels, which are large broadcast rooms. Text chat is not.
- Wire. MLS has been on for all Wire Cloud users since April 2025. Wire tested it with groups of up to 2,000 members.
- Matrix. Matrix had not moved to MLS by its 2025 status page. It still uses its own methods, called Olm and Megolm.
8. Checking the Key Belongs to the Right Person
Encryption locks a message to a key. It does not prove that the key belongs to Noah.
Say the server is dishonest or hacked, and an attacker named Mallory controls it. Emma asks for Noah's keys. The server gives her Mallory's keys instead:
- Emma's phone locks her message with Mallory's key, believing it is Noah's.
- Mallory opens it and reads it.
- Mallory locks it again with Noah's real key and sends it on.
- Noah gets the message as normal. Neither Emma nor Noah sees anything wrong.
This is called a man-in-the-middle attack.
Figure 8. A man in the middle. The server gives Emma the attacker's key in place of Noah's. The attacker reads every message and passes it on, so the chat looks normal to both people.
8.1 Safety numbers, checked by hand
The classic defense is the safety number. WhatsApp calls it the security code. It is a 60-digit number, also shown as a QR code, made from both people's identity keys.
Emma and Noah meet and compare the numbers on their two screens. If the numbers match, Emma's phone has Noah's real key, and no one is in the middle. In the attack above, Emma's screen would be built from Mallory's key, so the numbers would not match.
Most people never compare these numbers. So companies added a check that runs on its own.
8.2 Key transparency, checked automatically
With key transparency, the company writes every user's public keys into a transparency log. The log can only grow. An old entry cannot be changed or removed.
The entries are stored in a hidden form, so outsiders cannot read whose keys they are.
Here is how the log catches Mallory. The server gave Emma a fake key for Noah. Now it has two choices, and both get caught:
- It writes the fake key into the log. Noah's phone checks the log for its own keys. It finds a key it never made and warns Noah.
- It shows Emma a different log than everyone else. Auditors, outside companies that check the log, compare its history. They see that the history was split or rewritten.
Who uses key transparency:
- WhatsApp, since 2023. Its "Auditable Key Directory" checks keys on the security code screen. Its code is public. Cloudflare began auditing it in 2024.
- Apple, since 2023. iMessage Contact Key Verification checks keys against a log and shows an alert if something is wrong. It works only after the user turns it on. Users can also compare codes by hand.
- Messenger, since 2025. Meta added the same directory to Messenger. Cloudflare audits both apps.
- Signal, since August 2026. Automatic Key Verification uses Cloudflare and Trail of Bits as outside auditors. It works for contacts whose phone number the user has, but not yet for contacts known only by username.
Figure 9. Manual safety numbers on top, automatic key transparency below. The phone checks the key against a log that outside auditors watch.
9. Backups: The Weak Spot
A backup that is not end-to-end encrypted gives a full readable copy of the chats to the cloud company. A 2021 FBI document was reported in the news that year. It said the FBI could get WhatsApp message content from iCloud backups.
9.1 WhatsApp
WhatsApp added encrypted backups in 2021:
- The phone makes a random key and locks the backup with it.
- That key is locked again, either with a password the user picks or with a 64-digit key the user writes down.
- The password check runs inside a hardware security module, or HSM. An HSM is a locked computer chip in WhatsApp's data center. After a small number of wrong guesses, it makes the backup impossible to open. So a thief cannot try millions of passwords.
Since October 2025, a passkey can replace the password. A passkey uses the phone's fingerprint, face or screen lock. The user must turn encrypted backups on, because they are off by default.
9.2 Signal
For years Signal had only backups stored on the phone and transfers from one phone to another. In September 2025 it began adding Secure Backups, starting on Android. This is an optional encrypted backup in Signal's cloud.
The phone makes a 64-character recovery key that Signal never sees. There are two plans:
- Free: all text messages, up to 100 MB, and the last 45 days of photos and videos.
- Paid: US$1.99 a month, which also keeps the older photos and videos.
Attackers now try to steal that recovery key. In May 2026, attackers who pretended to be "Signal Support" tried to trick activists into giving it up.
9.3 Apple
iCloud backups are end-to-end encrypted only when the user turns on Advanced Data Protection, or ADP. The UK government sent Apple a secret order. So in February 2025 Apple stopped offering ADP to new users in the UK.
iMessage and FaceTime calls stay end-to-end encrypted there.
10. WhatsApp vs Signal
This comparison has two parts. The first is how message content is locked. The second is everything around it: data kept, backups, code and owners.
10.1 Message Content: The Same Core Method
Both apps use the Signal Protocol for one-to-one chats. Both use prekeys, a shared secret at the start and the Double Ratchet. Both turn it on by default.
So for classic encryption, Emma's chat with Noah is equally well protected in both apps. The differences are newer:
- Quantum protection. Signal added PQXDH in 2023 and the Triple Ratchet in 2025. Meta has published nothing that says WhatsApp chats use post-quantum encryption. A 2026 survey of chat apps found no public evidence of it.
- Proofs. Signal's protocol code is public and received computer-checked proofs in 2026. WhatsApp's code is closed. A 2025 paper studied a model of WhatsApp groups, but not WhatsApp's real code.
10.2 Metadata
Signal is built to know as little as it can:
- Sealed sender hides who sent each message.
- Private contact discovery, from 2017, checks a user's address book inside locked server hardware. So Signal does not learn who is in it.
- Group member lists are stored locked, since 2019.
WhatsApp's privacy policy, in force since 2021, lists what it collects. That includes when and how often a person uses the app, their online status, their IP address and details of their device. WhatsApp shares data with other Meta companies, including for showing offers and ads in Meta products.
The Electronic Frontier Foundation, or EFF, is a digital rights group. In 2025 it said WhatsApp chats stay end-to-end encrypted. But it was worried about how much metadata WhatsApp collects, and it named Signal's design as the model.
10.3 What Each Gives to Courts
Signal publishes the legal requests it receives. In November 2026 the page listed eight cases, the latest from that month. In the first, in 2016, Signal could hand over only two facts: when the account was created and when it last connected.
The 2021 FBI document described what WhatsApp could give with the right legal order:
- basic account records,
- address book contacts,
- who messaged whom, reported every 15 minutes.
None of this is message content. The document is from 2021, so the details may have changed. We could not read WhatsApp's own page for law enforcement for this post.
10.4 Backups
Both apps now offer end-to-end encrypted cloud backups, and in both apps the user must turn them on.
The starting point differs. Many WhatsApp users already have plain, readable backups in Google Drive or iCloud. Signal had no cloud backup at all until 2025.
10.5 Identity: Phone Numbers and Usernames
Signal still needs a phone number to sign up. Since February 2024 the number is hidden by default, and people can chat by username instead.
A Signal username ends in at least two digits, such as "emma.42". There is no public list of usernames, so people must know the exact username to start a chat.
WhatsApp opened username reservations in June 2026 and said usernames would arrive slowly, country by country. An optional "username key" can be required before strangers can message a person. We could not confirm whether usernames work in every country by November 2026.
10.6 Open vs Closed Code
Signal's app code and server code are public. Since 2016 its Android app has had reproducible builds. This means anyone can build the app from the public code and check that the result matches the app in the store, byte for byte.
WhatsApp's apps and servers are closed. Only its key directory code is public. In 2025 the security company Malwarebytes wrote that Signal's open code lets the public check it, while WhatsApp "lacks this transparency".
10.7 Business Chats and AI
Two WhatsApp features send content outside normal end-to-end encryption:
- Business chats on the Cloud API. Some businesses use Meta's own computers to run their WhatsApp account. Then Meta opens each message, passes it to the business and keeps it for up to 30 days. That chat is not end-to-end encrypted all the way to the business.
- Meta AI. Messages sent to Meta AI are not end-to-end encrypted and may be used to train AI. Normal chats between people stay encrypted.
WhatsApp also added privacy tools:
- Advanced Chat Privacy is a setting for one chat. It blocks exporting the chat, saving its media automatically and some AI features.
- Private Processing runs AI summaries on locked server hardware.
- Strict Account Settings came in 2026. It is for people at high risk, and turns on many protections in one tap.
Signal has no business service and no ads. We found no formal Signal statement about AI features, so we make no claim about them.
10.8 Ownership
Signal is run by the Signal Foundation, a US non-profit. It started in 2018 with US$50 million from Brian Acton, a co-founder of WhatsApp. It is paid for by donations.
WhatsApp is owned by Meta. Its privacy policy allows sharing data with Meta for ads.
10.9 Known Incidents
None of these attacks broke the Signal Protocol. Each one attacked a phone, a person or an unofficial copy of an app.
- WhatsApp, Pegasus spyware. In 2019 the NSO Group's Pegasus spyware used a WhatsApp bug against about 1,400 users. In October 2025 a US judge banned NSO from targeting WhatsApp. The judge also cut the extra damages NSO must pay from US$167 million to about US$4 million.
- WhatsApp, Graphite spyware. In January 2025 it came out that Paragon's Graphite spyware hit about 90 journalists and activists. It used a zero-click bug, which works without the victim tapping anything. WhatsApp fixed another zero-click bug in August 2025.
- WhatsApp, fake app. In April 2026 WhatsApp warned about 200 users, most of them in Italy. They had installed a fake WhatsApp app that contained spyware.
- Signal, unofficial copy. TeleMessage is an unofficial copy of Signal that saves messages for companies. In May 2025 it was hacked, and its saved messages were in plain text. Signal said it cannot promise that unofficial versions are safe.
- Signal, fake links and fake support. These are the 2026 linked-device attacks and the recovery-key tricks described above. The same tricks can work on other apps.
10.10 Side by Side
| Topic | Signal | |
|---|---|---|
| How message text is locked | Signal Protocol, on by default | Signal Protocol, on by default |
| Quantum protection | No public evidence in 2026 | Chat start from 2023, every message from 2025 |
| Computer-checked proofs of the code | None published | DeepMind, 2026 |
| Hides the sender from the server | No | Yes, sealed sender, since 2018 |
| Data kept | Usage, IP address, device details; shared with Meta | Phone number, sign-up date, last connection |
| What the FBI could get in 2021 | Account records, contacts, who messaged whom | Sign-up date, last connection |
| Encrypted cloud backups | User must turn on; from 2021, passkey from 2025 | User must turn on; from 2025 |
| Automatic key checks | Yes, from 2023 | Yes, for phone-number contacts, from 2026 |
| Username instead of number | Arriving from 2026 | Yes, from 2024 |
| Source code | Closed | Public, with reproducible Android builds |
| Ways text leaves E2EE | Meta AI, business Cloud API | None found |
| Owner | Meta | Non-profit foundation |
Figure 10. WhatsApp and Signal share the same core method for locking messages. They differ in quantum protection, the data they keep, their code and their owners.
10.11 Our Conclusion
Signal is more private by default. For classic encryption, the locking of message text is equally strong in both apps. Signal is ahead on quantum protection and on proofs.
Outside reviewers agree:
- Malwarebytes said in 2025 that in both apps only the sender and the receiver can read messages. It said the real differences are metadata, ownership and open code.
- The EFF named Signal's design and default settings as the model.
So the choice depends on the worry:
- If the worry is message content, both apps protect it.
- If the worry is also who talks to whom, and what the company keeps, Signal gives more by default.
- A WhatsApp user can come closer by turning on encrypted backups, keeping Meta AI out of private chats and using Advanced Chat Privacy.
11. Other Apps in 2026
- iMessage, from Apple. PQ3 came in 2024. It adds post-quantum keys at the start of a chat. It renews them about every 50 messages, or at least every 7 days. Two outside teams wrote formal proofs of it. PQ3 covers iMessage only, not SMS or RCS.
- Messenger, from Meta. In December 2023 Meta began making end-to-end encryption the default for one-to-one chats and calls. It uses the Signal Protocol. It also uses an encrypted storage system called Labyrinth, so chat history can move between devices.
- Instagram direct messages. News reports say Instagram removed its optional end-to-end encryption on May 8, 2026, and pointed users to WhatsApp. We found no Meta post that confirms it.
- Telegram. Only Secret Chats are end-to-end encrypted. They are one-to-one and stay on one device. Normal chats and groups are not end-to-end encrypted. Telegram has announced no post-quantum upgrade.
- Google Messages. Chats are end-to-end encrypted when both people use Google Messages with RCS turned on. SMS and MMS messages never are. Since May 2026 iPhone users can join the RCS test with Android. No post-quantum upgrade has been announced.
12. Laws and Pressure in 2026
Governments want to read messages to fight serious crime. Privacy groups and app makers say that any built-in way in also lets attackers in, which makes everyone less safe. This is where things stood in November 2026.
- European Union. The proposed EU rule against child sexual abuse is not final. Critics call it "chat control". In November 2025 EU governments agreed a position that does not force the scanning of private messages. A meeting in September 2026 reached no deal on private messages.
- United Kingdom. Apple removed ADP for new UK users in 2025. Another secret order was reported in August 2026, and Apple is fighting it at a special court. The Online Safety Act, from 2023, lets the regulator Ofcom require approved scanning tools in some cases.
- India, traceability. This rule would require an app to find the first sender of any message. WhatsApp says it could do this only by keeping a fingerprint of every message. That would break end-to-end encryption for everyone. WhatsApp's challenge to the rule is still in the Delhi High Court.
- India, SIM binding. A separate rule starts at the end of 2026. A messaging app may then work only while the phone holds the SIM card of the account's number.
- United States. In 2024, after the "Salt Typhoon" hacks of phone networks, CISA advised officials to use encrypted apps such as Signal. Critics such as the EFF say the STOP CSAM Act of 2025 threatens encryption. By November 2026, neither it nor the ENCRYPT Act of 2025 had become law.
13. Practical Tips
13.1 For Users
- Turn on encrypted backups. In WhatsApp, go to Settings > Chats > Chat backup. Turn on the end-to-end encrypted backup, and protect it with a passkey or a strong password. In Signal, write the recovery key on paper and keep it offline.
- Check linked devices. In WhatsApp and Signal, the list is under Settings > Linked devices. Open it every few weeks and remove any device that is not familiar.
- Be careful with QR codes. Scan a code to link a device only while setting up one's own laptop or tablet. Attackers send links and codes, often pretending to be a friend, that link their device to the victim's account.
- Keep codes private. Never give a PIN, a recovery key or an SMS code to anyone who asks in a message. That includes people who say they are "support".
- Update the phone and the apps. The spyware attacks above used bugs that updates fixed.
- Keep private chats away from cloud AI. Do not send them to an AI assistant. Check whether a summary feature runs on the phone or on the company's computers.
- For people at high risk. Turn on WhatsApp Strict Account Settings, and compare safety numbers in person.
13.2 For Developers
- Never invent new cryptography. Use a library that experts built and checked, such as libsignal, or an MLS library.
- Pick the method for the job. The Signal Protocol suits one-to-one chats and small groups. MLS suits large groups and apps that must talk to other apps.
- Plan for quantum computers now. Use a hybrid key setup, as PQXDH and PQ3 do, so that traffic recorded today stays safe later.
- Add key transparency. Most users never compare safety numbers. WhatsApp's public directory code and Signal's server are models to study.
- Treat metadata as sensitive data. Keep as little as possible, for as short a time as possible.
- Encrypt backups end to end, and design recovery with care. Attackers now try to steal recovery keys.
- Tell users plainly when content leaves E2EE, for example for AI features or business tools.
14. Further Reading
The facts in this post come from these sources, grouped by who wrote them.
Signal specs and posts
- Specs:
- Protocol posts:
- Product posts:
Meta
- WhatsApp:
- WhatsApp policies:
- Messenger:
Apple, Google, other apps and standards
- Apple:
- Google and RCS:
- MLS and other apps:
Research, audits and analysis
- Papers:
- Proofs and audits:
- Analysis:
Government notices
- CISA and FBI on account takeovers · 2026
- FBI public notice · 2026
- CISA mobile guidance · 2024
- ENCRYPT Act, H.R.2508 · 2025
News reports
- Metadata and data access:
- Incidents:
- Products:
- Laws:
15. Where to Go Next
This post covers the phones and the keys. The server side of a chat app has its own design, with message queues and storage. For that, read our WhatsApp System Design post.
Explore the Technologies
These lessons go deeper into the ideas in this post.
- Why Cryptography Exists. The basics, for readers new to this.
- Public vs Private Keys. The key pairs every phone holds.
- Diffie-Hellman Key Exchange. How two phones agree on a secret, as in the paint example.
- ECDH and Curve25519. The curve math most chat apps use.
- The Signal Protocol: X3DH and the Double Ratchet. Starting a chat and the new key per message, in full detail.
- PQXDH: Making Signal Post-Quantum. The post-quantum start of a chat.
- ML-KEM: Post-Quantum Key Encapsulation. The post-quantum building block.
- The Quantum Threat: Shor, Grover and Harvest Now. Why "harvest now, decrypt later" matters.
- Perfect Forward Secrecy and Ephemeral Keys. Why deleted keys protect old messages.
- HKDF and Key Derivation. How one secret becomes many keys.
- MLS (RFC 9420): Group Messaging at Scale. The tree method for big group chats.
- Certificate Transparency. The log idea behind key transparency.
- Passkeys and WebAuthn. The passkeys that can protect a WhatsApp backup.
- Do Not Roll Your Own. Why developers should use a checked library.