SRP-6a
Secure Remote Password: a long-deployed augmented PAKE over finite-field groups
Overview
SRP is an augmented password-authenticated key exchange in which the server stores a verifier rather than the password. SRP-6a is its widely deployed revision, standardised for TLS in RFC 5054; it is considered legacy because modern designs such as OPAQUE offer stronger guarantees.
At registration the client computes a password verifier v = g^x mod N, where x is derived from a salt and the password, and the server stores the salt and v. During login both sides exchange ephemeral Diffie-Hellman style values, mixed with the verifier in a way that lets the client prove knowledge of the password and the server prove possession of the verifier, without either the password or an offline-testable value crossing the wire.
SRP's weaknesses are structural: the salt is sent to the client before authentication, so an attacker can precompute dictionaries for a target user and test them instantly after stealing the verifier database. The protocol also uses large finite-field groups and was designed before modern security models for PAKEs. It remains in use in Apple iCloud Keychain and many legacy systems. One configuration is present: srp-6a-2048-sha256, with the 2048-bit group from RFC 5054 and SHA-256.
History
1998–1998SRP-6a published by Thomas Wu
How it works
- Registration: the server stores salt s and verifier v = g^x mod N, where x = H(s, password).
- The client sends A = g^a; the server replies with s and B = k*v + g^b.
- Both compute u = H(A, B), and a shared value S from their secrets.
- Both derive a session key from S and exchange proofs M1 and M2 of the same key.
Security notes
Legacy: vulnerable to precomputation once the verifier database is stolen, since salts are public, and not post-quantum. Use OPAQUE for new password-authenticated systems.
Typical uses
Variants in NextSSL
1| Algorithm | Tier | Sizes (bytes) | Standards | API |
|---|---|---|---|---|
| SRP-6a-2048-SHA-256 srp-6a-2048-sha256 |
legacy | key 1–256 · ss 1–256 | RFC 5054, RFC 2945 | root |
Frequently asked questions
Which SRP-6a variants does NextSSL include?
NextSSL registers 1 SRP-6a variant: srp-6a-2048-sha256.