SRP Explained: The Case for Never Sending Your Password

SRP explained in plain terms means understanding the login that never sends your password, a protocol from 1998 that proves you know a secret without ever showing it. The central question is why a login would need mathematics when a password sent over an encrypted channel already works, and the answer is that channels get breached and servers get stolen, so SRP gives logins a proof that stays safe even when the server is not, and that safety is the whole point of the design.

SRP is a password authentication protocol created by Thomas Wu at Stanford, standardised for TLS in RFC 2945 and RFC 5054. It lets a client prove a password to a server that holds only a verifier, and it is built on the idea that a password should never leave its owner’s machine, which means the design is meant for logins that must survive a breach, and that focus is what makes it unlike the logins of its era.

This article makes the case for SRP, explains what it is, how it works, and where its ideas still earn their keep.

Key takeaways

  • SRP is a login protocol from 1998, by Thomas Wu.
  • The password never crosses the wire, not even encrypted.
  • The server stores a verifier, not a password.
  • It is an augmented password-authenticated key exchange.
  • Apple, 1Password and Proton Mail have used it.

What SRP is

SRP is a protocol that turns a password into a proof with one core exchange, and that restraint is what makes it unusual among logins. The client and server swap public values and derive the same session key, which means both sides prove themselves at once, and because the password never travels, an eavesdropper learns nothing useful.

Its signature feature is the verifier. Most logins store a password hash on the server, but SRP stores a verifier computed from the password, which means a stolen database gives an attacker a hard maths problem, and because the verifier cannot be used to log in directly, the breach buys little.

The design was a reaction to the cost of stolen passwords. Servers were being breached and password databases leaked, so Wu asked how a login could work when the server itself cannot be trusted, because a password that lives on a server will eventually leak, and that practicality is what made SRP worth standardising.

It became one of the best-known password protocols in the world, and it is named in every discussion of the field. SRP is standardised in RFC 5054, it has been used by Apple, 1Password and Proton Mail, and it is still the first example engineers meet when they learn that a login can hide its password, which means the design survives as a tool even though it is nearly thirty years old.

Our guide to Diffie-Hellman explains the key exchange SRP is built on, and our guide to Kerberos explains the ticket-based login it is measured against.

How SRP works

Everything starts with enrolment, which creates the verifier. SRP takes the username and password, salts them and raises a generator to the result, which means the verifier is one modular exponentiation, and because the salt is random, the same password gives different verifiers.

Each login begins with the client, which sends its username and a public value. SRP has the client pick a random secret and compute a public value from it, which means fresh randomness arrives at every login, and because the value is public, it can cross the wire safely.

The server’s reply is what makes the design work as a whole. SRP has the server send back the salt and its own public value, which means the client can now compute the session key, and because the server’s value mixes in the verifier, only the real server can complete the exchange.

The scrambling parameter spreads the effect further. SRP mixes both public values into a scrambling value, which means each session is unique, and because the value depends on both sides, neither side can fix the outcome in advance.

The session key is what turns the exchange into a login. SRP has both sides derive the same key from the shared secret, which means the key is known to both and to nobody else, and because the key is fresh, it can encrypt everything that follows.

The result comes from the proof, read out as a mutual check. SRP has each side prove it holds the session key, which means a wrong password fails the check, and that failure is exactly what a login system needs to refuse entry.

A dark office desk with a laptop showing a glowing green cipher diagram, a brass key and a notebook beside it
A dark office desk with a laptop showing a glowing green cipher diagram, a brass key and a notebook beside it, shows how SRP works: values take turns being exchanged and combined, step after step, until both sides hold the same key.

Comparing SRP with other login methods

SRP is one of several ways to log in with a password, and each was built with a different emphasis. Plain password login is the simple method that sends the password over an encrypted channel, Kerberos is the ticket method that trusts a central server, and SRP is the one built to keep the password off the wire entirely, while each approach trades something for something else.

The table below sets out the main contrasts between the leading approaches.

Aspect SRP Password login Kerberos
Password on wire Never Yes, encrypted Never
Server stores Verifier Password hash Keys
Mutual proof Yes No Yes
Needs Nothing extra TLS channel Ticket server
Best for Breach-proof logins Simple sites Enterprise networks

The practical result is that SRP is the right choice for breach-proof logins, plain password login suits simple sites, and Kerberos fits enterprise networks instead.

Where SRP is used

Apple uses it for iCloud services. Apple’s key vault and some of its authentication flows run SRP, because a password that never leaves the device survives a server breach, and that survival is the reason SRP earns its keep in consumer logins.

1Password uses it for vault sign-in. The password manager authenticates with SRP, because the master password must never reach the server, and that rule is the reason SRP appears in its sign-in flow.

Proton Mail uses it for mailbox login. The encrypted mail service authenticates with SRP, because a mail provider that holds passwords is a mail provider that can be breached, and that risk is the reason SRP appears in its design.

VPNs use it for client authentication. Virtual private networks that authenticate users with SRP keep passwords off their servers, because a VPN server is a tempting target, and that temptation is the reason SRP runs in VPN logins.

Teaching uses it as the password-proof example. Courses introduce SRP when they explain that a password need never travel, because it is the clearest case of the idea in a real protocol, and a student who understands SRP understands why verifiers beat stored passwords.

Strengths and limits

The greatest strength of SRP is its breach resistance. A login that never sends the password and stores only a verifier gives attackers almost nothing to steal, and that strength is real, measured in the services that use it and confirmed by the decades it has survived.

It is also a strength that the design proves both sides. A protocol where the server must also prove itself stops fake servers, and that mutual proof is worth more than cleverness in a field where a login that trusts any server is a login nobody should use.

The limits are real, though, and the biggest is the deployment cost. SRP needs both sides to speak the protocol, which means it cannot drop into a plain password form, and a system that must work with any client must use a simpler method instead.

SRP checklist

  • Use SRP for logins that must survive a breach, never for plain password forms.
  • Remember the password never leaves the client machine.
  • Note the server stores a verifier, not a password.
  • Compare it with Kerberos to see two kinds of trusted login.
  • Study the verifier, which is what makes stolen databases useless.
  • Check the group parameters, since the prime must be safe.
  • Keep real secrets behind proper key management, not passwords alone.
  • Read RFC 5054 to see how the exchange was standardised.
  • Choose a simpler login when clients cannot speak SRP.

Frequently asked questions

What is SRP in simple terms?

It is a 1998 login protocol that proves you know your password without ever sending it, by having both sides derive the same session key.

Who created SRP?

Thomas Wu at Stanford, who designed it in 1998 and saw it standardised for TLS in RFC 2945 and RFC 5054.

How is SRP different from a normal login?

A normal login sends the password over an encrypted channel, but SRP never sends it at all, and the server stores a verifier instead of a password hash.

Is SRP still secure?

It is well studied and widely deployed, though the verifier must be protected and the group parameters must be chosen carefully.

Where is SRP used?

In Apple’s iCloud services, in 1Password, in Proton Mail, in VPN logins, and in teaching about password protocols.

When should I use SRP?

When logins must survive a server breach, when passwords must never leave the client, or when you study password-authenticated key exchange.

The bottom line

SRP explained in one line is this: the login that never sends your password, a 1998 design of verifiers and shared secrets that kept passwords off the wire and taught the field that a server need not hold what it checks.

It is proof that a password can stay home and still prove itself, and the reason it still matters is that every breach-proof login designed since has been judged partly by the lesson SRP taught.

This article is general information about how SRP works, not advice about choosing encryption for a particular device or system.

Latest articles

Scroll to Top