---
title: "Building end-to-end security for Messenger"
description: "Messenger is rolling out end-to-end encryption by default for personal one-to-one chats, built on the Signal protocol and accompanied by two whitepapers covering the messaging protocol and Labyrinth, a new encrypted storage protocol."
url: "https://swe.quest/articles/building-end-to-end-security-for-messenger-0573da5f5bbc2217"
canonical: "https://engineering.fb.com/2023/12/06/security/building-end-to-end-security-for-messenger/"
source: "Meta Engineering"
published: "2023-12-07"
difficulty: "easy"
kind: "Announcement"
reading_minutes: 7
tags: ["cryptography","communications","privacy","security"]
---

# Building end-to-end security for Messenger

A post on [Meta Engineering](https://swe.quest/sources/meta.md), published 2023-12-07, 7 min read, Announcement. Original: [https://engineering.fb.com/2023/12/06/security/building-end-to-end-security-for-messenger/](https://engineering.fb.com/2023/12/06/security/building-end-to-end-security-for-messenger/)

## Summary

Messenger is rolling out end-to-end encryption by default for personal one-to-one chats, built on the Signal protocol and accompanied by two whitepapers covering the messaging protocol and Labyrinth, a new encrypted storage protocol. The design goals break down into eight concepts, including confidentiality in transit and in storage, user control over endpoint devices, telemetry limits and third-party scrutiny. Key challenges included keeping Messenger's password-based multi-device model, rebuilding server-dependent features (using OHAI and Anonymous Credentials for private sticker search), storing ciphertext history on servers with key rotation via Labyrinth, and supporting web clients. Group chats and Instagram DMs remain in testing.

Written by swe.quest, not by the author.

**Difficulty:** Easy: no special background needed; explains what something is and why it matters

## Topics

- [Cryptography](https://swe.quest/tags/cryptography.md) (Security)
- [Communications](https://swe.quest/tags/communications.md) (Domains)
- [Privacy](https://swe.quest/tags/privacy.md) (Security)
- [Security](https://swe.quest/tags/security.md) (Security)

## Prerequisites

- end-to-end encryption basics ([easy posts on Cryptography](https://swe.quest/tags/cryptography.md?difficulty=easy))

## Keywords

Messenger, Labyrinth, Signal protocol, Messaging Layer Security, OHAI, Anonymous Credentials, Code Verify

## Related posts

- [How Advanced Browsing Protection Works in Messenger](https://swe.quest/articles/how-advanced-browsing-protection-works-in-messenger-7c673f722bfcb274.md): Meta Engineering · 2026-03-09 · Hard · 12 min read · Privacy, Cryptography, Sandboxing & isolation, Communications, Security
  Advanced Browsing Protection checks links clicked in end-to-end encrypted Messenger chats against a large, frequently updated blocklist while revealing as little as possible about the URL to Meta.
- [Key Transparency Comes to Messenger](https://swe.quest/articles/key-transparency-comes-to-messenger-708dc659c9b4f0af.md): Meta Engineering · 2025-11-20 · Easy · 3 min read · Cryptography, Communications, Security
  Messenger now supports key transparency verification for end-to-end encrypted one-on-one chats, letting users automatically confirm that contacts' public keys haven't been swapped by a compromised server instead of comparing per-device keys manually.
- [A Synchronized Start for Linked Devices](https://swe.quest/articles/a-synchronized-start-for-linked-devices-cdf813a15b92ebf8.md): Signal · 2025-01-27 · Medium · 10 min read · Cryptography, Communications, Privacy, Mobile
  Signal now lets users transfer message history and the last 45 days of media when linking a new Desktop or iPad, without exposing data to the server.
- [Making messaging interoperability with third parties safe for users in Europe](https://swe.quest/articles/making-messaging-interoperability-with-third-parties-safe-for-users-in-europe-9b70d7b99df3e105.md): Meta Engineering · 2024-03-06 · Medium · 7 min read · Communications, Cryptography, Identity & auth, System design, Privacy
  To comply with the EU Digital Markets Act, WhatsApp and Messenger now let eligible third-party messaging services interoperate for 1:1 text and media, with group chats and calling to follow.
- [How WhatsApp enables multi-device capability](https://swe.quest/articles/how-whatsapp-enables-multi-device-capability-b0c5b9accf94ba1b.md): Meta Engineering · 2021-07-14 · Medium · 6 min read · Cryptography, Communications, Privacy, System design
  WhatsApp's new multi-device architecture drops the phone as source of truth: each device gets its own identity key, the server maps accounts to device lists, and senders use client-side fanout to encrypt each message separately over pairwise Signal sessions to every sender and recipient device.

Browse: [Latest posts](https://swe.quest/index.md) · [Topics](https://swe.quest/tags.md) · [Sources](https://swe.quest/sources.md) · [Topic map](https://swe.quest/map.md) · [Site guide (llms.txt)](https://swe.quest/llms.txt)
