RFC 7617, the September 2015 standard for HTTP Basic authentication, does something rare for a technical document: it confesses in paragraph two. The user-id and password, it says, “are passed over the network as cleartext.” Then it does something rarer still. Having admitted that weakness, it refuses to fix the other one — the character encoding — because two decades of deployed software had already voted, and the vote was split.
The short version
- RFC 7617, September 2015, Standards Track, defines the “Basic” scheme, “which transmits credentials as user-id/password pairs, encoded using Base64”.
- The warning is not buried: “This scheme is not considered to be a secure method of user authentication unless used in conjunction with some external secure system such as TLS, as the user-id and password are passed over the network as cleartext.”
- The document then declines to close its oldest gap: the original definition “did not specify the character encoding scheme used to convert the user-pass into an octet sequence”, and for backwards compatibility “this specification continues to leave the default encoding undefined”.
A scheme that names its own weakness
Basic authentication is old enough to have outlived several of its own revisions. It was first written down in RFC 1945, the HTTP/1.0 specification of May 1996, survived the move to HTTP/1.1 in RFC 2068, and was written up alongside Digest in RFC 2617 in June 1999. When Digest got a fresh revision as RFC 7616 in September 2015, Basic got RFC 7617 — a document by Julian Reschke of greenbytes that reads less like a design and more like a confession with a syntax section.
The mechanics are almost insultingly simple. The password is not encrypted, not hashed, not challenged; it is concatenated with the user-id, Base64-encoded, and sent — once per request, on every request. Anyone who reads a log or a packet capture sees it. That transparency is the scheme’s advantage and its joke: it does exactly what it says, and what it says is that it does almost nothing.
Base64 is a wrapper, not a seal
The encoding exists because the Authorization header carries text. Base64 turns a byte string into characters that survive transport, expanding it by a third and hiding nothing. Its ancestry is PEM and MIME, where it existed to protect mail gateways from 8-bit bytes, not to protect secrets from readers.
The mistake — confusing encoding with encryption — is older than the web and keeps recurring, because a value that looks scrambled gets treated as protected. Basic authentication is the standard example, and the standard says so in the same breath that defines it.
The undefined charset: an encoding nobody could agree on
The interesting specification problem is smaller and stranger. A user-pass string has to become octets before it can be encoded, and the original definition never said how. In practice, as Section 2.1 of RFC 7617 concedes, “many user agents and servers have been observed to use either a locale-specific encoding such as ISO-8859-1, or UTF-8.”
Fixing a default in 2015 would have been easy and would have broken deployed users: a password stored as ISO-8859-1 bytes on one side and UTF-8 on the other is not the same password. So the document defines an optional charset parameter a server can advertise in its challenge, and leaves the default undefined “as long as it is compatible with US-ASCII”. A specification written in 2015 that declines to define a default because of compatibility is not lazy. It is honest about which constraint won.
It is also a small, clean case of what Lu Heng calls running-code primacy: the specification follows the deployed base, not the other way round. A document that ordered the world to pick UTF-8 would have been correct, ignored, and quietly amended.
One colon, and the user names it costs
The scheme also carries a rule with consequences far outside itself: the first colon separates the user identifier from the password, so “a user-id containing a colon character is invalid” (Section 2.2). Every system that later adopted Basic as a shorthand — routers, printers, build servers, the captive portal at the airport — inherited that constraint, and every user with a colon in their name discovered that a 1996 syntax decision had decided for them. Small rules about separators have a habit of outliving the protocol that needed them.
Why Basic authentication survives: TLS and the cheapest thing that works
Basic authentication wins because it is the cheapest thing that works everywhere: no negotiation beyond a challenge, no timestamp to synchronise, no shared secret beyond the password itself, no server-side session. TLS turned its fatal flaw into an acceptable one, which is the real lesson. The scheme was never fixed; the layer underneath it was, and the specification kept its warning because the warning is still the truth about what Basic does.
The lock-in, in the end, is not the password. It is the installed base: every browser, every curl invocation, every embedded device with a login box that has not been touched since the firmware was flashed. Standards do not survive because they are good. They survive because they are already everywhere.
Lock-in by specification: the standard that documents its own compromise
RFC 7617 does not pretend the design is good. It defines the scheme, states the weakness, and leaves the encoding undefined to avoid breaking anyone who guessed differently two decades earlier. That combination — precise about format, candid about security, silent about encoding — is what a mature standard looks like when the alternative is a migration nobody would finish.
Basic authentication is not a standard that failed to solve its problems. It is a standard that wrote them down, shipped them, and waited for TLS to do the rest. The password still travels in Base64. The alphabet is still negotiable. And the login box still works — which is the only argument that ever wins.
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.






