Base64 is not encryption. It is a costume. In the mid-1990s, as the web turned from a physics-lab curiosity into a place where people typed credit card numbers, HTTP Basic authentication sent the password on every single request wearing exactly that costume — and anyone with a packet capture could read it.
The fix was called Digest, and it was clever, cheap and honest about its own promise: the password never crosses the wire. What the specification said more quietly was where the password went instead.
HTTP Digest authentication, standardised today as RFC 7616, solved the exposure problem on the wire by creating a password-equivalent on the server. That inversion is why the scheme survived in SIP stacks, IP cameras and embedded firmware — and why it never became the way the web logs in.
How HTTP Digest authentication works — and what it actually protects
The mechanism is a challenge-response handshake. The server issues a nonce; the client answers with a hash built from the password, the nonce, the HTTP method and the requested URI. RFC 7616, published in September 2015, defines a valid response as "an unkeyed digest of the username, the password, the given nonce value, the HTTP method, and the requested URI".
The pitch is not marketing. It is the specification's own sentence: "the password is never sent in the clear". Since RFC 7616 the username can be hashed as well, so the wire carries neither a password nor a readable identity. For a protocol designed in an era of shared terminals and sniffable Ethernet, that was a genuine advance, and it cost nothing but a hashing routine.
The 1990s bargain: export crypto and a login that distrusted the cipher
Digest's timing was not an accident. In the mid-1990s, strong cryptography was treated as a munition by the United States government, and export-grade SSL shipped with 40-bit keys already within reach of a determined graduate student. A login scheme whose strength did not depend on the strength of the cipher had obvious appeal.
The names on the paperwork tell the story. RFC 2069, the January 1997 original, carried seven authors including John Franks, Phillip Hallam-Baker and Ari Luotonen. RFC 2617, the June 1999 consolidation, carried six of the same seven — and bundled Basic and Digest into a single document, a filing decision that told you which one the working group expected to win. By the time RFC 7616 arrived in 2015, the work had passed to a new editorial crew led by Rifaat Shekh-Yusef, which is what happens when a protocol outlives its authors' patience.
The storage inversion: why a leaked Digest file is a master key
Here is the sentence that should have ended the argument in 1997. RFC 7616 concedes that "Digest Authentication requires that the authenticating agent (usually the server) store some data derived from the user's name and password", and that if that file leaks, "an attacker gains immediate access to documents on the server using this realm".
That stored value is HA1 — the hash of username, realm and password. It is not a hint. It is not a fingerprint. For the purposes of the realm it is the password, wearing a lab coat.
Worse, the protocol fixes the hash function. A modern password store is deliberately slow and per-user salted, so a stolen database costs the attacker years. Digest cannot do that, because client and server must agree on the algorithm in advance and compute the identical value. The server is therefore forbidden from using the one defensive tool the industry later decided mattered most.
A modern password store is designed so that a leak costs the attacker time. Digest's store is designed so that a leak costs the attacker a copy-paste.
What Digest never protected: the body, the replay, the realm
Digest protects the password, not the conversation. A response is reusable for the same request until the nonce changes, which is why the scheme needs limited-use nonces and a "stale" flag to stop a captured answer from working twice.
It also leaves the request body alone. The digest covers the method and the URI, so a listener on the path can still rewrite the payload. RFC 2617 offered a fix — qop=auth-int, which folds a hash of the entity body into the response — and almost nobody used it, because it forces the client to buffer the entire body before it can authenticate.
And the realm, Digest's one genuinely durable idea, is also its cage. Credentials are scoped to a realm, so the same human logging into two services gets two unrelated secrets and two unrelated prompts. The web eventually chose a different answer: one form, one cookie, one session, one TLS tunnel.
Why HTTP Digest lost the web to TLS and form login
Once the whole connection is encrypted, hiding the password inside a hash adds very little, while every one of Digest's awkwardnesses remains: no slow hashing on the server, no modern salting, no credential you can carry to another service.
That is why Digest survives in narrow corners rather than at the centre. It is a better Basic on an unencrypted path and a worse Basic on an encrypted one. It lives in SIP authentication, in RTSP streams, in the management page of a camera whose firmware has not been touched since 2011 — places where a certificate is a nuisance, a form is impossible, and the client is a chip.
Digest did not win the web. It shipped into everything else. Lock-in is rarely a decision; it is a firmware image.
RFC 7616 did not fix Digest — it renewed the lease
The 2015 revision is a careful, honest document. It adds SHA-256 and SHA-512/256, formalises username hashing, tightens the nonce rules and says plainly what the scheme cannot do. What it cannot do is undo the bargain. A protocol that requires the server to hold a password-equivalent, and forbids the server from protecting it with a slow hash, has already decided where the risk lives.
Three RFCs across eighteen years is not a scheme being maintained. It is a scheme being managed. RFC 7616 is a 2015 document defending a 1996 trade-off, and it knows it.
The lesson: name the adversary, then check where the copy lives
A scheme is not made safe by hiding the secret. It is made safe by making the secret hard to use. Digest hid the secret in transit and stored something equivalent at rest — protecting the copy that was already moving through a hostile world, and leaving the copy that never moved at all.
That failure mode is not confined to authentication. Ask who the mechanism is defending against, then ask what it costs the defender. A protection that relocates risk into a place you own is a trade, not a win, and the trade is only good if you have priced the place you moved it to.
Digest guarded the wire and left the skeleton key on the server. The web noticed — and went shopping elsewhere.
Member Briefing
Read the full trend briefing
Members read the full briefing with the source notes behind every finding.
Strategic Circle
A daily briefing in your language, built from changes we have verified.
Join for USD 20/monthCancel anytime.
Members also get the full research library, a daily briefing on the networks they follow and the private forum.






