Cryptography & Protocols

Private Information Retrieval: Querying Without Revealing the Query

May 31, 2026 9 min read Haven Team

Encryption protects the data sitting in a database. But the query you send can leak just as much: the stock symbol you looked up, the medical condition you searched, the contact whose key you fetched. Private information retrieval is the cryptographic answer to a stranger question — can you get the record you want without the server ever learning which record that was? Remarkably, yes.


Picture a server holding a public database — say, a directory of encryption keys, or a list of breached passwords, or stock quotes. You want entry number 4,217. The naive approach is to ask for it, and now the server knows you wanted entry 4,217. Even if the connection is TLS-encrypted, the server itself sees the index. Your access pattern is exposed.

For a lot of privacy problems, the access pattern is the whole game. Which person's key you requested reveals who you're about to message. Which patent or legal record you pulled reveals your strategy. Which password hash you checked reveals which of your passwords you're worried about. Private information retrieval (PIR), introduced in a 1995 paper by Chor, Goldreich, Kushilevitz, and Sudan, makes that access pattern invisible to the server.

The Trivial Solution, and Why It's Not Enough

There is a perfectly private way to retrieve one record without revealing which: download the entire database and pick out the entry locally. The server learns nothing about your choice because you asked for everything. This is the baseline PIR is measured against.

The whole research challenge is doing better than "download everything." A directory with a billion entries can't be downloaded for every lookup. PIR's goal is to give you the same perfect privacy — the server learns nothing about your index — while transferring far less than the full database. That turns out to be possible, but it's not free, and the cost structure is the interesting part.

The core guarantee

PIR guarantees the server cannot determine which item you retrieved. It does not by itself hide the data from you, hide that you made a query, or hide how many queries you make. It protects one specific thing: which record you wanted.

Two Families of Schemes

PIR splits into two fundamentally different approaches, distinguished by what they assume about the servers.

Information-theoretic PIR (multi-server)

The original idea uses multiple servers that each hold a copy of the database and are assumed not to collude. The trick is beautiful in its simplicity. Imagine two servers. You want bit i. You generate a random set of indices, send it to server A, and send the same set with bit i flipped in or out to server B. Each server XORs together the bits at the positions you named and returns a single result. Neither set, on its own, looks like anything but random — so neither server learns i. But when you XOR the two answers together, everything cancels except bit i, which is exactly what you wanted.

This gives information-theoretic security: it holds even against an adversary with unlimited computing power, because each server genuinely sees random-looking data. The catch is the non-collusion assumption — if the servers compare notes, privacy collapses. You're trading a cryptographic assumption for a trust assumption about independent operators.

Computational PIR (single-server)

The other family needs only one server and leans on homomorphic encryption instead of non-collusion. You encrypt a query vector that is, in effect, an encrypted "1" at your desired position and encrypted "0"s everywhere else. Because homomorphic encryption lets the server compute on ciphertext it can't read, the server multiplies your encrypted selector against the database and sums the results — producing an encrypted answer that decrypts, on your device, to exactly the record you wanted. The server did the work but never saw which position held the 1.

This is computational security: it holds as long as the underlying encryption is hard to break, the same kind of assumption securing the rest of modern cryptography. The price is heavy math — historically PIR was so slow it was considered impractical, but schemes from the last several years (SealPIR, SimplePIR, FrodoPIR and others) brought it within range for real deployments.

Multi-server (IT-PIR) Single-server (CPIR)
Security from Servers not colluding Hardness of encryption
Servers needed Two or more, independent One
Strength Holds against unlimited compute No trust split required
Weakness Collusion breaks it Computationally expensive

Where PIR Actually Ships

PIR spent decades as a theory-only curiosity. That's changed. A few real-world deployments:

Encryption answers "what did they say?" PIR answers a question encryption can't touch: "what did you want to know?"

The Limits Worth Naming

PIR is not a complete privacy system on its own, and overselling it does harm. Three honest caveats:

It protects the index, not everything else. The server still knows you made a query, when, from what IP, and how often. Pair PIR with a network-layer anonymity tool if those matter.

Writing is harder than reading. Plain PIR is about retrieval. Privately updating a database without revealing what you changed is a related but separate and harder problem (oblivious RAM and private writing).

Cost is real. Even modern PIR adds meaningful computation and bandwidth versus a plain lookup. It's deployed where the privacy is worth that overhead, not everywhere by default.

Why It Matters

Most privacy tools focus on content — keeping the message body secret. PIR belongs to a quieter, increasingly important class of techniques aimed at the metadata of access: not what's in the database, but what you reached for. As more of life routes through lookups against someone else's server — directories, search, key servers, breach checks — the query itself becomes a rich source of surveillance. PIR is one of the few tools that can shut that channel without forcing you to download the world.

It sits alongside zero-knowledge proofs and homomorphic encryption in a generation of "compute on things you can't see" cryptography that is finally crossing from papers into products. The common thread: privacy no longer has to mean keeping data off the server. Increasingly, it can mean letting the server hold the data and do the work — while still learning nothing about you.

Try Haven free for 15 days

Encrypted email and chat in one app. No credit card required.

Get Started →