---
title: "How Meta is improving password security and preserving privacy"
description: "Meta's Private Data Lookup (PDL) checks new passwords against breached-password datasets using Private Set Intersection, so the server learns neither the attempted password nor whether it matched."
url: "https://swe.quest/articles/how-meta-is-improving-password-security-and-preserving-privacy-daa9a84182d0e924"
canonical: "https://engineering.fb.com/2023/08/08/security/how-meta-is-improving-password-security-and-preserving-privacy/"
source: "Meta Engineering"
published: "2023-08-08"
difficulty: "medium"
kind: "Case study"
reading_minutes: 6
tags: ["cryptography","privacy","identity-auth","security"]
---

# How Meta is improving password security and preserving privacy

A post on [Meta Engineering](https://swe.quest/sources/meta.md), published 2023-08-08, 6 min read, Case study. Original: [https://engineering.fb.com/2023/08/08/security/how-meta-is-improving-password-security-and-preserving-privacy/](https://engineering.fb.com/2023/08/08/security/how-meta-is-improving-password-security-and-preserving-privacy/)

## Summary

Meta's Private Data Lookup (PDL) checks new passwords against breached-password datasets using Private Set Intersection, so the server learns neither the attempted password nor whether it matched. The client sends a per-request blinded hash H(p)^a, the server double-blinds it with a long-term key b and returns blinded hashes of leaked passwords, and the client unblinds and matches locally. To make this practical, leaked passwords are pre-blinded offline, the dataset is sharded by a short hash-prefix index, and returned values are truncated to cut bandwidth. The check flags a password appearing anywhere in a breach, not just a matching username/password pair, and is deployed in Enterprise Center's account creation and reset flows.

Written by swe.quest, not by the author.

**Difficulty:** Medium: assumes a working developer; shows how it is built or done

## Topics

- [Cryptography](https://swe.quest/tags/cryptography.md) (Security)
- [Privacy](https://swe.quest/tags/privacy.md) (Security)
- [Identity & auth](https://swe.quest/tags/identity-auth.md) (Security)
- [Security](https://swe.quest/tags/security.md) (Security)

## Prerequisites

- cryptographic hashing
- Diffie-Hellman style blinding
- password authentication flows ([easy posts on Identity & auth](https://swe.quest/tags/identity-auth.md?difficulty=easy))

## Keywords

Private Data Lookup, Private Set Intersection, Enterprise Center, Anonymous Credential Service, Meta

## Related posts

- [PrivacyLib: Privacy Controls at the Data Access Boundary](https://swe.quest/articles/privacylib-privacy-controls-at-the-data-access-boundary-f868c0b03bdc9ad2.md): Meta Engineering · 2026-10-27 · Medium · 17 min read · Privacy, System design, Identity & auth, AI agents, Performance engineering
  PrivacyLib is a common library embedded in the clients of hundreds of Meta data and processing systems that enforces and observes privacy requirements at the point of data access.
- [Data logs: The latest evolution in Meta’s access tools](https://swe.quest/articles/data-logs-the-latest-evolution-in-meta-s-access-tools-614b48244a60ed88.md): Meta Engineering · 2025-02-04 · Medium · 11 min read · Data pipelines, Privacy, Analytics & OLAP, System design, Resilience
  Meta serves per-user data logs from its Hive data warehouse, which cannot handle per-user point queries, by batching many Download Your Information requests into one full-table scan.
- [How Meta built large-scale cryptographic monitoring](https://swe.quest/articles/how-meta-built-large-scale-cryptographic-monitoring-007f3fb06e949eb9.md): Meta Engineering · 2024-11-12 · Medium · 10 min read · Cryptography, Observability, Scaling, C & C++
  Meta logs every operation in FBCrypto, its managed cryptographic library, without sampling by aggregating identical events into per-event counts in an in-process buffer and flushing them periodically to Scribe, with data landing in Scuba and Hive.
- [How Meta discovers data flows via lineage at scale](https://swe.quest/articles/how-meta-discovers-data-flows-via-lineage-at-scale-8ef1c9f35e0ab6a8.md): Meta Engineering · 2025-01-23 · Medium · 13 min read · Privacy, Static analysis, Data pipelines, Observability
  Meta builds a data lineage graph across its web, data warehouse and AI systems to find where sensitive data such as Facebook Dating religion fields flows, so privacy controls like Policy Zones can be applied.
- [Applying federated learning to protect data on mobile devices](https://swe.quest/articles/applying-federated-learning-to-protect-data-on-mobile-devices-b070f62868b3f5e6.md): Meta Engineering · 2022-06-14 · Easy · 3 min read · Privacy, Model training, ML platforms, Mobile
  Meta is evaluating federated learning with differential privacy (FL-DP), which trains models on mobile devices and adds noise to updates before they reach a global model so user data stays local and is harder to memorize or reconstruct.

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)
