OPAQUE: How to Log In Without Sending Your Password to the Server

By Editorial Team Published 7 min read
Key sealed in a glass cube beside an opaque token and a green-lit vault, illustrating the OPAQUE protocol.

Your password travels through an encrypted connection. The website stores only a carefully salted hash. Everything sounds reassuring—until you notice the awkward moment in between: the server receives the password so it can check it.

The OPAQUE protocol changes that arrangement. Your device uses the password to authenticate without handing it to the server, including when you first register. The server can help check the secret without being told the secret. [2]

That is a remarkable improvement. Understanding exactly what it protects is more useful than calling it unhackable.

What Is the OPAQUE Protocol?

OPAQUE is an augmented password-authenticated key exchange, or aPAKE. A client and server authenticate each other and establish a shared session key using a password on the client side and a registration record on the server side. The protocol does not transmit the password itself. [3]

The research behind OPAQUE was presented by Stanislaw Jarecki, Hugo Krawczyk, and Jiayu Xu in 2018. Its design specifically addresses precomputation attacks against password authentication. [3]

The current specification is RFC 9807, published in July 2025 by the IRTF’s Crypto Forum Research Group. It is an Informational RFC, not an Internet Standards Track specification. [1]

The user can still type a familiar password. The machinery behind the login button changes substantially.

HTTPS Protects the Journey. What Happens at the Destination?

TLS protects communication against eavesdropping and tampering. It does not prevent the legitimate endpoint from reading application data delivered to it. In a conventional password form, that data includes the password. [4]

Separately, responsible password storage uses a dedicated password-hashing algorithm, such as Argon2id, with appropriate parameters and salts. This makes stolen verifiers more expensive to attack. A salt is not encryption, and a fast general-purpose hash alone is not an appropriate substitute. [5]

Transport and storage protections leave a password-handling gap between them. OPAQUE addresses that gap by changing the authentication exchange. [2]

Our guide to what HTTPS does and does not prove explores the same endpoint distinction. A protected delivery route does not make everything at its destination trustworthy.

The Clever Ingredient: A Function That Works Blind

OPAQUE uses an oblivious pseudorandom function, or OPRF. The client has a private input; the server has a secret function key. They cooperate so the client obtains the function’s result without revealing its input, while the server does not reveal its key. [6]

Here is a useful mental picture. A workshop has a specialized stamping machine. You can submit a covered item, let the workshop transform it, and remove your covering afterward. The workshop did useful work without seeing your original item.

The real operation uses cryptographic blinding, not an envelope placed over a password string. The transmitted value is not simply a fixed hash that another party can present as a replacement password.

Fresh blinding randomizes each request, while unblinding lets the client recover a consistent password-dependent result for the same server-side key and input. The server cannot perform that unblinding for the client. [6]

The OPRF is a component, not the whole login protocol. OPAQUE combines it with credential recovery and authenticated key exchange. [3]

How the OPAQUE Protocol Handles Registration

Ordinary registration often starts by sending the chosen password to the service. OPAQUE instead runs an interactive registration exchange. The client obtains password-dependent material through the OPRF and constructs the record that the server will retain. [2]

Registration needs an authenticated, confidential channel, such as properly validated TLS, to establish the correct relationship and protect registration data. [1]

The record includes a client public key, a masking key, and an envelope. The server also retains separate secret key material, including its OPRF seed. These are different pieces with different roles. [1]

The envelope needs one clarification: RFC 9807’s construction derives the client’s private key from password-dependent material and an envelope nonce. The envelope contains a nonce and an authentication tag; it is not literally a file containing an encrypted copy of the password or private key. [1]

Think of the server as keeping the materials that let the right client reconstruct and authenticate its credentials, without being given the client’s password.

Login: Three Messages, One Shared Secret

The familiar username-and-password form can hide a small cryptographic conversation. In the RFC’s 3DH-based construction, the login exchange has three messages: [7]

MessageDirectionPurpose, simplified
KE1Client to serverBegin credential retrieval with blinded input and a fresh key-exchange contribution.
KE2Server to clientReturn the OPRF evaluation, masked credential information, and the server’s authenticated key-exchange contribution.
KE3Client to serverComplete client authentication so the server can accept the exchange.

The client uses the password-dependent result to recover its authentication material, validate the envelope, and complete the exchange. With the wrong password, those checks do not produce a successful login. Both sides obtain a shared session secret. [3, 7]

That secret is not automatically your website’s session cookie. The application still decides how to establish and manage its logged-in session. An implementation must verify the final client message before treating the exchange as complete. [7]

For historical contrast, Password Authentication Protocol sends the password in its PPP authentication exchange. OPAQUE changes the cryptographic model; it is not a drop-in replacement for a PPP authentication method. [8]

What If Someone Steals the Server’s Database?

This is where the precise promise matters.

OPAQUE’s original research distinguishes protection against precomputation from the claim that guessing is impossible after a breach. Before the server’s OPRF secret is exposed, password-specific preparation requires interacting with the server rather than simply computing guesses offline. Ordinary salts already frustrate reusable rainbow tables; the guarantees are not identical. [3]

If an attacker obtains the credential records and the relevant OPRF secret, offline dictionary attacks are still possible in the single-server design. OPAQUE does not give a weak password unlimited entropy. Configured key stretching can increase the cost of guesses. [1, 7]

The practical lesson is to protect records and server secrets deliberately, rather than treating every server-side value as harmless because the password was never transmitted.

A server takeover is also broader than password recovery. Someone who controls the application may misuse accounts or data without first discovering every user’s password.

What OPAQUE Does Not Fix

A compromised client can steal what you type. Malware or malicious page code can capture a password before the cryptographic exchange starts. XSS prevention and trustworthy client software remain essential. In a browser application, a compromised service that supplies the login JavaScript may change that code to steal the input. This is an endpoint-security consequence, not a break of OPAQUE’s mathematics. [9]

A fake page can still ask for your password. OPAQUE does not turn a text box into a phishing-resistant authenticator. A person can still type the secret into the wrong site.

Online guessing still needs controls. The application needs rate limits, abuse handling, and sensible recovery flows. OPAQUE does not operate those systems for it. [7]

A good login does not protect every later request. If an application issues an ordinary bearer cookie, theft of that cookie remains a separate problem. Our explanation of Device Bound Session Credentials examines protection at that later stage.

OPAQUE vs. Hashing, TLS, and Passkeys

MechanismMain jobDistinction from OPAQUE
TLS / HTTPSProtect the communication channel.A conventional login still delivers the password to an endpoint.
Password hashingMake stored password verifiers costly to attack.Storage protection alone does not hide a submitted password from the checking server.
OPAQUEAuthenticate a password without transmitting it and establish a shared key.Requires compatible client and server protocol logic.
Passkeys / WebAuthnAuthenticate with public-key credentials scoped to a relying party.Uses an authenticator-held credential rather than a password-based exchange.

These mechanisms can complement one another. OPAQUE is normally deployed inside a protected application channel; it does not mean “remove HTTPS.” Passkeys address a different design goal by avoiding a shared website password and enforcing credential scoping through the browser and authenticator. [4, 5, 7, 10]

Simply computing a fixed digest in JavaScript and sending it as the sole login credential does not recreate OPAQUE. If possession of that digest is enough to authenticate, it has become another reusable secret. The interactive protocol is doing more than moving a hash function across the network.

What Would Adoption Actually Involve?

OPAQUE changes both ends of authentication. An existing password-hash database cannot simply be relabeled as an OPAQUE database; users need an appropriate registration or migration flow. Cloudflare identified that practical obstacle in its early deployment discussion. [2]

Implementers must agree on the protocol version and configuration, protect server key material, and integrate session management. For a concrete reference, the bytemare Go implementation targets RFC 9807 and is maintained by one of its authors; its documentation also explicitly says it has not been independently audited. That makes it useful to study, not a reason to skip an implementation review. [7]

For the reader looking at a login page, the visible experience may barely change. The consequential change is behind it: the service no longer needs to receive the password as part of the protocol to verify that you know it.

References and Further Reading

Network Encyclopedia Editorial Team

Every entry is written, reviewed and kept up to date by our editors. Spotted a mistake? We fix it in the open.

Editorial Mission · Correction Policy · Suggest a correction