How end-to-end encryption works on WhatsApp

Last update: 11/11/2025
Author Isaac
  • WhatsApp It encrypts messages, calls, and files on the device, and only the recipient can decrypt them.
  • Verification with QR code and 60 digits prevents MITM attacks by confirming the contact's identity.
  • Names, photos, and descriptions of groups are excluded from E2EE and may be analyzed automatically.
  • The reports send copies from the complainant's mobile phone, without master keys or mass decryption on servers.

WhatsApp encryption

Today we chat, call, and share photos without a second thought, but behind the scenes, there's technology that keeps all of that secure: end-to-end encryption. In WhatsApp, this security layer is designed so that only you and your contact can read what's being sent. Neither intermediary servers nor the provider itself should have access to the content , and that completely changes the game when it comes to privacy.

However, it's important to understand how it works, what it protects and what it doesn't, and in what scenarios there might be nuances. We'll break down the mechanism, its real limitations, and how to verify that your conversation is properly protected , as well as review risks such as man-in-the-middle attacks and threats to the devices themselves.

What is end-to-end encryption and why is it so important?

When an app claims to use end-to-end encryption (E2EE), it means that the data is encrypted on the sender's device and only decrypted on the recipient's. The entire transmission is "pry-proof ," so even if someone intercepts the packets, they will see an undecipherable jumble without the correct key.

A simple way to visualize this is to imagine sending a package inside a locked box. Only you and the other person have the key to the lock . Along the way, the package will pass through many hands, but no one can open it except the person with that key. In technical terms, the encryption key remains under the control of the ends of the communication.

This contrasts with traditional server-based systems, which only encrypt the connection between your device and the server (encryption in transit). In that model, the provider could see or process the content in plaintext , something most users would prefer to avoid in private conversations. Therefore, E2EE is considered the most robust option for sensitive communications.

Historically, not all platforms have played fair with the term. Some services advertised themselves as "end-to-end" without actually being so, such as Lavabit or Hushmail at certain times. Others, like Telegram or Google Allo, were criticized for not enabling E2EE by default , requiring the user to manually activate it.

Example of end-to-end encryption

It's also important to distinguish between end-to-end encryption (E2EE) and client-side encryption applied to backups or file services. A provider encrypting your backups on your device doesn't make that service E2EE messaging ; it's another valid type of protection, but geared towards storage , not peer-to-peer sharing.

How end-to-end encryption works on WhatsApp

WhatsApp implements its encryption based on the Signal protocol, a widely audited and recognized standard. Unique keys are generated for each chat, protecting messages, photos, videos, files, voice notes, and calls. Everything is encrypted on your device before being sent and is only decrypted when it reaches your contact's phone.

Thus, even if the message passes through WhatsApp's servers, it cannot be read there. The company claims not to have access to the decryption keys , which reside exclusively on users' devices. In practice, this makes it impossible for the provider to "open" a chat on its own, even if someone intercepts the traffic.

  How to set up payments on WhatsApp Business easily and securely

In addition to encryption, contact identity verification is crucial. WhatsApp displays a QR code and a 60-digit number associated with each conversation. If you both scan each other's QR code or compare the numbers, you confirm that there is no impersonation and that you are talking to who you think you are.

To check manually: open the chat, tap the contact or group name, go to "Encryption," and you'll see the QR code next to the 60 digits. You can scan the QR code from the other phone or visually verify the numerical string. You don't need to do this every day, but it's useful when you suspect a device change or when starting sensitive conversations.

WhatsApp security check

This approach differs from so-called encryption in transit. In that model, the server receives the decrypted content and then re-encrypts it. This opens up potential attack vectors on the server . In E2EE, however, the content travels encrypted end-to-end, effectively eliminating intermediaries with access to the plaintext.

What is excluded from encryption: metadata and visible elements

Just because a chat is encrypted doesn't mean everything about your account is invisible. Your name, description, and profile picture are data that may be available to WhatsApp depending on your privacy settings. Similarly, group names and descriptions are not part of the encrypted chat content.

These public or semi-public elements may be subject to automated checks to detect abuse (for example, against child exploitation). This does not mean that people are reading your private conversations , but rather that there are review processes in place for parts of the service that are not covered by the E2EE.

It's also important to remember that end-to-end encryption (E2EE) doesn't handle all metadata itself. Information such as dates, file sizes, and IP addresses can leave traces (depending on the service's implementation and policies). Even if the content is encrypted, the mere existence of a communication can be inferred in some cases.

Something similar happens with backup systems: if you back up to the cloud and these backups aren't end-to-end encrypted, your storage provider could technically access that data . When client-side encryption is used, you control the key, but that doesn't make the system end-to-end messaging, because we're talking about storage, not data sharing.

Complaints and reports on WhatsApp: what's really going on with encryption

One of the most confusing points is what happens if someone reports a conversation. A quick reading of some texts suggests that WhatsApp can "break the encryption." However, what actually happens is different: when a chat is reported, the reporting user's device forwards recent copies of the messages from that chat to WhatsApp for analysis, so the team can assess whether the service's rules have been violated.

From a technical standpoint, there's no master key that unlocks everything. The entire history on the server isn't decrypted, nor are conversation keys forced. What's reviewed is the portion that the reporting user's client chooses to submit as evidence, and that's enough to investigate abuse, spam, or harassment.

If you violate the rules and are reported, WhatsApp can take action, including account suspension. This doesn't negate the end-to-end reporting principle for everyone ; it simply enables a voluntary channel (on the part of the reporter) for the provider to inspect specific content for security and compliance purposes.

  VoidLink Malware: The advanced framework that threatens Linux and the cloud

Man-in-the-middle (MITM) attacks and how to prevent them

Encryption protects the content, but you must ensure you're communicating with the intended recipient. In a man-in-the-middle attack, an intruder impersonates the recipient during key exchange, tricking you into encrypting with a key they control . They can then read and re-encrypt the message so that everything appears normal to the legitimate recipient.

To prevent this, E2EE systems incorporate endpoint authentication. You can rely on certificate authorities or use a web of trust, and also manually verify cryptographic fingerprints. WhatsApp addresses this practically with QR codes and 60-digit codes, which simplify the comparison process.

In other tools, public fingerprints are displayed as grouped hexadecimal strings for easier reading. A typical example of a 128-bit MD5 fingerprint might look like this :

43:51:43:a1:b5:fc:8b:b7:0a:3a:a9:b1:0f:66:73:a8

Some solutions display words in natural language instead of hexadecimal, or use base-10 encoding to improve localization. Modern apps also allow scanning fingerprints like QR codes , which reduces human error when manually comparing long strings.

What's under the hood: keys and protocols

End-to-end encryption (E2EE) can be implemented in several ways. It's possible to use pre-shared secrets (as in PGP) , secrets derived from a one-time secret (DUKPT), or to negotiate keys on the fly using Diffie-Hellman key exchange, as in Off-the-Record (OTR) style protocols.

The Signal protocol, on which WhatsApp is based, employs a set of modern techniques, such as "Double Ratchet" along with Curve25519, to frequently rotate keys and provide perfect forward secrecy (so that even if a future key is compromised, older messages remain secure). This constant rotation reduces the attack surface.

It's worth noting that, not so long ago, most server-based messaging platforms didn't offer end-to-end end-to-end (E2EE) messaging by default. It was only from 2016 onwards that it began to become widespread in popular applications, driven by societal demands for privacy and the work of the security community.

Endpoint security: the weakest link

End-to-end encryption (E2EE) does not protect against malware already on your phone or computer. If your device is compromised, an attacker can read decrypted messages , capture screenshots, or steal passwords. That's why digital hygiene (updates, trusted apps, device locking) remains critical.

To strengthen protection, some approaches isolate key generation and storage on dedicated hardware (smart cards), such as Google's former Project Vault. These modules reduce the risk of key exposure to the operating system , although attack vectors still exist in plaintext input and output.

An even more robust approach is to operate with completely air-gapped systems to handle sensitive material. PGP has been recommended for years for these types of scenarios , although even isolated networks can fail: the Stuxnet case demonstrated that malware can cross physical barriers using creative vectors.

To mitigate key exfiltration via malware, it has been proposed to split the trusted computing database between two unidirectionally connected machines. The idea is to prevent both the insertion of malicious code and the leakage of confidential data if one of the systems were compromised.

  What a VPN protects against, and what it doesn't actually protect against.

Back doors and supplier trust

Security depends not only on algorithms but also on the behavior of companies. In 2013, the Snowden documents revealed that Skype had a backdoor that allowed Microsoft to deliver messages to the NSA despite its supposed security measures. This kind of history encourages the preference for open and auditable protocols.

Backdoors can be introduced intentionally or accidentally. Poor implementation, or a regulatory requirement, can weaken a system . That's why it's crucial that apps adopt security-by-default designs, revalidate their code, and undergo independent audits.

E2EE beyond WhatsApp: an overview

The primary use of E2EE today is in mobile and online messaging. iMessage protects messages between Apple devices with end-to-end encryption, so that not even Apple itself can read them . On Android, the situation varies by app: many Play Store platforms offer E2EE, but it's not something the system enforces universally.

Signal is the benchmark for privacy thanks to its open design and its default end-to-end end-to-end end-to-end end-to-end (E2EE) protection for messages, calls, and video calls. WhatsApp, for its part, applies E2EE to all chats and calls , bringing robust privacy to a mass audience. Other apps have been criticized for not enabling this protection by default.

Email can also leverage end-to-end encryption (E2EE) using PGP or OpenPGP, though its configuration isn't always straightforward. Services like Proton Mail integrate PGP support to simplify the process, while others, such as Tuta, use their own end-to-end encryption approach.

Impact of E2EE on privacy and our digital life

Living connected means leaving a trace. That's why end-to-end eavesdropping provides an essential layer of security for chatting, coordinating work, or sharing personal information without constant fear of surveillance. It prevents unauthorized third parties from eavesdropping on your conversations and reduces the risk of massive data leaks.

From a social perspective, this protection strengthens freedom of expression, especially in environments where censorship comes into play. A secure channel allows communication without self-censorship , leading to greater pluralism. However, no technology is 100% infallible: there are reasonable limits that should be accepted and managed.

Before we finish, it's worth remembering three practical points. First, verifying your security code reduces the risk of man-in-the-middle attacks . Second, protect your endpoints : lock your phone, keep your system updated, and be wary of suspicious links. Third, be aware of what isn't covered by encryption (profiles, group names, and certain metadata) to adjust your expectations.

WhatsApp's end-to-end encryption is robust and mature, relying on a modern protocol with key rotation and simple QR code verification. It protects against intermediaries , reduces the attack surface, and limits content exposure. Even so, reports of abuse, metadata, and device risks serve as a reminder that privacy isn't a magic switch, but rather a combination of best practices and well-implemented technology.

How to open WhatsApp backup on PC
Related articles:
How to Open WhatsApp Backup on PC