Skip to content
ContentLora

    Tip: press / anywhere to search.

    Explainer

    End-to-end encryption (E2EE) explained

    End-to-end encryption (E2EE) means a message can be read only by the people communicating, not by the servers that carry or store it.[1] It is built from protocols such as Signal's X3DH and Double Ratchet and the IETF's Messaging Layer Security for groups, Meta began making it the default for personal chats on Messenger in December 2023, and Apple offers it as an option for most iCloud data.[2][3][4][5][6]

    Editor reviewedUpdated Explainer19 claims · 100% primaryPost-quantum cryptography and security, Phones, PCs and devices
    Reading level: 6 passages differ; the rest is the same for everyone.

    This explainer covers how end-to-end encryption works and where it is used. The policy fight over law-enforcement access is covered in the encryption backdoor debate. Choose a reading level in each section.

    What end-to-end means

    With end-to-end encryption, a message is locked on your device and can only be unlocked on the devices of the people you are talking to. The servers that pass it along cannot read it.[1]

    Apple puts it this way for its own services: end-to-end encrypted data can be decrypted only on your trusted devices, not even by Apple, and stays protected if the cloud is breached.[7]

    The IETF’s Messaging Layer Security standard defines the goal as ensuring messages are accessible only to the communicating endpoints and not to any servers involved in delivery.[1] Transport encryption such as TLS has a different goal: a secure channel between two communicating parties, such as a client and a server, against an attacker who controls the network.[8] Apple’s description of its end-to-end encrypted iCloud categories follows the same model: keys live only on trusted devices, so a breach of the provider’s cloud does not expose the data.[7] For the underlying building blocks, see how encryption works.

    Starting a conversation: X3DH

    To encrypt a chat, two phones need a shared secret key. But the other person might be offline when you send your first message. Signal’s X3DH protocol solves this: each user posts some public key information to a server in advance, so you can set up a shared key with someone even while their phone is off.[2]

    You can compare a code or QR code with your contact to check their identity. Signal’s specification says that if you never check, you get no cryptographic guarantee about who is on the other end.[9]

    X3DH (“Extended Triple Diffie-Hellman”) establishes a shared secret between two parties who mutually authenticate via public keys, providing forward secrecy and cryptographic deniability; it is designed for asynchronous settings in which the recipient has published prekeys to a server.[2] Authentication ultimately rests on comparing identity keys over an authenticated channel, such as fingerprints or QR codes; without it there is no cryptographic guarantee of the peer’s identity.[9] In September 2023 Signal introduced PQXDH, which derives the shared secret from both X25519 and CRYSTALS-Kyber so an attacker must break both; see signal-post-quantum-protocol.[10]

    Keeping keys fresh: the Double Ratchet

    Once a chat is set up, Signal-style apps keep changing the key. Every message gets a new one, so a key stolen today cannot be used to work out older keys. The two phones also keep mixing in fresh secrets, so a stolen key stops working for later messages too.[3]

    Meta says the end-to-end encryption it rolled out by default on Messenger in December 2023 is built on the Signal Protocol, plus its own Labyrinth Protocol.[5]

    The Double Ratchet derives new keys for every message, so earlier keys cannot be computed from later ones, and mixes Diffie-Hellman outputs into the chain so later keys cannot be computed from earlier ones, giving protection in both directions after a key compromise.[3] In October 2025 Signal added a Sparse Post-Quantum Ratchet that runs alongside the Double Ratchet in a “Triple Ratchet”.[11] Meta’s December 2023 Messenger roll-out built default E2EE for personal chats and calls on the Signal Protocol and its own Labyrinth Protocol, with a global roll-out expected to take months.[5]

    Group chats: Messaging Layer Security

    Group chats are harder. Many people need to share a key, and they may not all be online at the same time. The Messaging Layer Security (MLS) standard, published in 2023, is designed for this, and works for groups from two people to thousands.[4]

    End-to-end encryption protects what you say, but not everything about the conversation. MLS’s own specification warns that an observer may still be able to work out things like who is in a group and how often it is used.[12]

    RFC 9420 (July 2023) specifies MLS, an asynchronous group key establishment protocol with forward secrecy and post-compromise security for groups of two to thousands.[4] Its ratchet tree assigns keys to subgroups, so encrypting fresh entropy to all but one member takes about log(N) encryptions rather than N-1, which makes removals and post-compromise recovery efficient.[13] The standard is explicit about metadata: KeyPackages, GroupInfo, public handshake messages, unencrypted headers and message lengths are not confidential, so observers may infer group membership, epoch changes and message frequency.[12]

    Cloud backups and recovery

    Messages are only part of the story. Backups and cloud storage can hold copies of your data. Apple’s default iCloud setting encrypts data but keeps the keys in its data centres so it can help you recover your account; only some categories are end-to-end encrypted.[14] If you turn on Advanced Data Protection, 25 categories are end-to-end encrypted, including backups and photos, but Apple can no longer help you recover them if you lose access.[6]

    Email is a harder case. Apple says iCloud Mail is not end-to-end encrypted because it has to work with the global email system.[15]

    Apple’s standard data protection holds iCloud keys in Apple data centres to enable recovery, with only certain categories end-to-end encrypted; Advanced Data Protection (since iOS 16.2) raises the end-to-end encrypted categories to 25, including iCloud Backup, Photos and Notes, at the cost of Apple-assisted recovery.[14][6] iCloud Mail stays outside E2EE for interoperability with the global email system.[15] Apple says it can no longer offer Advanced Data Protection to new users in the UK, and that iMessage and FaceTime remain end-to-end encrypted there.[16][17]

    The policy argument

    Some governments argue that end-to-end encryption without any lawful access stops police from investigating serious crimes.[18] Security agencies have also recommended it: in December 2024 the US cybersecurity agency CISA urged people at high risk of being targeted to use only end-to-end encrypted communications.[19] The arguments are covered in the encryption backdoor debate.

    A 2020 international statement argued that end-to-end encryption precluding lawful access in all circumstances creates public-safety risks, including for responding to child sexual exploitation.[18] After identifying espionage by PRC government-affiliated actors in commercial telecommunications networks, CISA urged highly targeted individuals in December 2024 to use only end-to-end encrypted communications.[19] See the encryption backdoor debate for the competing views.

    Next in the crash course

    More in Post-quantum crypto

    Developing in AI & Computing

    Questions readers ask

    What does end-to-end encrypted mean?

    It means messages are accessible only to the communicating devices and not to any servers involved in delivering them, so those servers cannot read the content.[1]

    Does end-to-end encryption hide who I talk to?

    Not fully. The Messaging Layer Security standard, for example, notes that some messages and header fields are not confidential, so an observer may be able to infer properties of a group such as its membership and how often messages are sent.[12]

    Is iCloud end-to-end encrypted?

    Partly. By default Apple keeps keys for most iCloud data so it can help with recovery, and only certain categories are end-to-end encrypted. With the optional Advanced Data Protection, 25 categories are, including iCloud Backup, Photos and Notes. iCloud Mail is not, because it has to work with ordinary email.[14][6][15]

    What is a safety number or security code?

    It is a way to compare the identity keys of the people in a chat, for example by checking fingerprints or scanning a QR code. Signal's specification says that without this check users get no cryptographic guarantee of who they are talking to.[9]

    What happens if a key is stolen?

    Signal's Double Ratchet derives a new key for each message and mixes in fresh key exchanges, so a stolen key cannot be used to work out earlier keys, and the protocol recovers for later messages. This limits how much a single compromise exposes.[3]

    Sources

    · 19 claims from 7 publishers

    Each numbered claim is a statement we checked against the sources listed with it. Tap a number in the text to see its sources in place.

    1. [1]

      End-to-end security in messaging means messages are accessible only to the communicating endpoints and not to any of the servers that deliver them. confirmedas of 2023-07-01

    2. [2]

      Signal's X3DH protocol establishes a shared secret key between two parties who authenticate each other with public keys, provides forward secrecy and deniability, and works when the recipient is offline by using key material they published to a server in advance. confirmedas of 2026-11-21

    3. [3]

      In Signal's Double Ratchet algorithm, the parties derive a new key for every message so earlier keys cannot be calculated from later ones, and mix in fresh Diffie-Hellman results so later keys cannot be calculated from earlier ones, limiting the damage if keys are compromised. confirmedas of 2026-11-21

    4. [4]

      RFC 9420 says key establishment is harder for group chats, where more than two clients must agree on a key but may not be online at the same time, and defines the Messaging Layer Security (MLS) protocol for asynchronous group keys with forward secrecy and post-compromise security for groups of two to thousands. confirmedas of 2023-07-01

    5. [5]

      In December 2023 Meta began rolling out default end-to-end encryption for personal messages and calls on Messenger and Facebook, built on the Signal Protocol and Meta's own Labyrinth Protocol, and said the global roll-out would take months. confirmedas of 2023-12-06

    6. [6]

      With Apple's optional Advanced Data Protection, available since iOS 16.2, the number of iCloud data categories that are end-to-end encrypted rises to 25, including iCloud Backup, Photos and Notes, and Apple no longer holds keys to help recover the data. confirmedas of 2026-11-21

    7. [7]

      Apple says end-to-end encrypted iCloud data can be decrypted only on the user's trusted devices, not even by Apple, and stays protected in a cloud data breach. confirmedas of 2026-11-21

    8. [8]

      TLS aims to give two communicating parties a secure channel with authentication (the server is always authenticated), confidentiality and integrity, even against an attacker who controls the network. confirmedas of 2018-08-01

    9. [9]

      Signal's specification says users can compare identity keys over an authenticated channel, for example by checking fingerprints or scanning a QR code, and that without this step they get no cryptographic guarantee of who they are talking to. confirmedas of 2026-11-21

    10. [10]

      In September 2023 Signal introduced PQXDH, which derives a shared secret from both X25519 and CRYSTALS-Kyber so that an attacker must break both. confirmedas of 2023-09-19

    11. [11]

      On 2 October 2025 Signal announced the Sparse Post Quantum Ratchet (SPQR), which runs alongside its Double Ratchet and mixes both keys in a "Triple Ratchet", rolling out without any user action. confirmedas of 2025-10-02

    12. [12]

      The MLS standard notes that some messages and header fields are not confidential, so an observer may be able to infer properties of a group such as its membership and how often messages are sent. confirmedas of 2023-07-01

    13. [13]

      MLS uses a ratchet tree so that encrypting new key material to all but one member of a group takes about log(N) encryptions instead of N-1, which lets it remove members and recover from compromise efficiently. confirmedas of 2023-07-01

    14. [14]

      Apple's default "standard data protection" encrypts iCloud data but keeps the keys in Apple data centres so Apple can help with recovery, and only certain categories are end-to-end encrypted. confirmedas of 2026-11-21

    15. [15]

      Apple says iCloud Mail is not end-to-end encrypted because it must interoperate with the global email system. confirmedas of 2026-11-21

    16. [16]

      Apple says it can no longer offer Advanced Data Protection to new users in the UK, so UK users cannot choose end-to-end encryption for the 10 iCloud data categories it covers, including iCloud Backup, iCloud Drive and Photos, while ADP remains available everywhere else. confirmedas of 2026-11-08

    17. [17]

      Apple says it has never built a backdoor or master key into any of its products or services and never will, and that iMessage and FaceTime remain end-to-end encrypted in the UK. confirmedas of 2026-11-08

    18. [18]

      The 2020 statement argued that end-to-end encryption that precludes lawful access in all circumstances creates risks to public safety by undermining companies' ability to respond to violations of their terms of service, including the most serious illegal content such as child sexual exploitation, and by precluding law enforcement access to content where necessary and proportionate to investigate serious crime. confirmedas of 2026-11-08

    19. [19]

      After identifying espionage by PRC government-affiliated actors in commercial telecommunications networks, CISA urged highly targeted individuals in December 2024 to use only end-to-end encrypted communications. confirmedas of 2026-11-08

    Revision history (1)
    1. Page created.

    Created Nov 21, 2026. Last reviewed by an editor on Nov 22, 2026. Next scheduled review: Sep 8, 2027.

    Cite this page

    "End-to-end encryption (E2EE) explained." ContentLora, updated Nov 21, 2026. https://contentlora.com/explain/end-to-end-encryption-explained

    Spotted an error? Suggest a correction or emailcorrections@contentlora.com.