OPAQUE
Asymmetric PAKE: password login where the server never sees the password
Overview
OPAQUE is an augmented (asymmetric) PAKE that lets a client log in with a password while the server stores only a value from which the password cannot be learned without an offline dictionary attack. It is specified by the IRTF CFRG as RFC 9807.
In conventional password login the server receives the password, even if only briefly, and stores a salted hash that an attacker can copy and attack later. OPAQUE uses an oblivious pseudorandom function (OPRF) keyed by the server: the client blinds its password, the server evaluates the OPRF without seeing it, and the client unblinds the result to obtain a key that decrypts an envelope holding its long-term key material. The parties then run an authenticated key exchange.
Because the per-user OPRF key acts as a secret salt that is never sent to the client, an attacker who wants to precompute password guesses must first compromise the server; OPAQUE is secure against such precomputation attacks, unlike SRP. The password never leaves the client, and the protocol yields a mutually authenticated session key. One configuration is present: opaque-ristretto255-sha512, using the ristretto255 group for the OPRF and key exchange with SHA-512.
History
2018–2025OPAQUE published by Stanisław Jarecki, Hugo Krawczyk, Jiayu Xu
Specified in RFC 9807
How it works
- Registration: the client blinds its password, the server evaluates the OPRF, and the client stores an encrypted envelope and public key with the server.
- Login: the client blinds the password again and sends it with a key-exchange message.
- The server returns the OPRF evaluation, the stored envelope and its key-exchange response.
- The client unblinds, opens the envelope, completes the key exchange and both sides derive a session key.
Security notes
A server compromise still allows offline dictionary attacks against stored records, so slow password hashing (the KSF stage) remains important. The construction is not post-quantum. NextSSL has not yet verified it against the RFC test vectors.
Typical uses
Variants in NextSSL
1| Algorithm | Tier | Sizes (bytes) | Standards | API |
|---|---|---|---|---|
| OPAQUE-Ristretto255-SHA-512 opaque-ristretto255-sha512 |
unverified | key 1–256 · ss 64 | RFC 9807 | root |
Frequently asked questions
Which OPAQUE variants does NextSSL include?
NextSSL registers 1 OPAQUE variant: opaque-ristretto255-sha512.
Other password-authenticated key exchange
All 3Related
HMAC-based extract-and-expand key derivation function (RFC 5869)
OPRF (RFC 9497)Oblivious pseudorandom function over ristretto255 with SHA-512
SPAKE2Balanced password-authenticated key exchange based on Diffie-Hellman
SRP-6aSecure Remote Password: a long-deployed augmented PAKE over finite-field groups
Argon2The Password Hashing Competition winner: memory-hard hashing standardised in RFC 9106