Home▸Articles▸Cryptography

Oblivious Transfer: One Secret, Never Knowing Which

A cryptographic protocol that allows one party to transfer a piece of information to another without revealing which piece was transferred.

mysimulator teamUpdated June 2026≈ 3 min read▶ Open the simulation

What is Oblivious Transfer?

Oblivious transfer (OT) is a cryptographic protocol that enables one party, the sender, to transmit a piece of information to another party, the receiver, such that the receiver learns exactly one of two possible secrets while the sender remains oblivious as to which secret was chosen. This protocol ensures privacy and security in the exchange of information.

The concept of OT is foundational for many advanced cryptographic applications, including secure multi-party computation, private information retrieval, and anonymous communication systems.

How Oblivious Transfer Works

At its core, an OT protocol involves a sender who holds two secrets, A and B. The receiver can request to learn one of these secrets without the sender knowing which secret was chosen. This is achieved through a series of steps that involve encryption, blinding, and decryption processes.

The RSA trapdoor function is often used in OT protocols due to its properties of being easy to compute but hard to invert without the private key (trapdoor).

live demo · related simulation● LIVE

Why It Matters

Oblivious transfer is crucial for maintaining privacy and security in digital communications. By ensuring that neither party gains more information than necessary, it prevents unwanted disclosures or interceptions of sensitive data.

This protocol supports the development of secure systems where users can access information without revealing their intentions to others.

Real-World Applications

Oblivious transfer is used in various applications such as secure voting, private database queries, and secure auctions. For instance, in a secure auction, bidders can submit bids without revealing their identities or the amount of their bid until the end of the auction.

In private information retrieval (PIR), OT helps users retrieve data from a server without the server learning which specific piece of data was requested.

Frequently asked questions

What is the difference between 1-out-of-2 and 1-out-of-n Oblivious Transfer?

In 1-out-of-2 OT, a receiver can choose to learn one of two secrets. In contrast, 1-out-of-n OT allows the receiver to select from multiple secrets (n).

Is oblivious transfer related to zero-knowledge proofs?

Yes, both are cryptographic techniques that enhance privacy and security in digital communications. Zero-knowledge proofs allow one party to prove to another that a statement is true without revealing any information beyond the truth of that statement.

Can oblivious transfer be used for secure messaging?

Yes, OT can be part of more complex protocols that enable secure messaging. It ensures that messages are exchanged in such a way that neither party learns more than necessary about the other's communication preferences or content.

Is oblivious transfer practical for everyday use?

While the full protocol might be too complex and resource-intensive for everyday applications, components of OT are used in many secure systems. Simplified versions can be integrated into more user-friendly protocols to enhance privacy.

Try it live

Everything above runs in your browser — open Oblivious Transfer: One Secret, Never Knowing Which and change the parameters while it is running. Nothing is installed, nothing is uploaded, the whole model lives in one tab.

▶ Open Oblivious Transfer: One Secret, Never Knowing Which simulation

What did you find?

Add reproduction steps (optional)