Protect transport and check the recipient
05The same Basic value can cross an exposed network or an HTTPS-protected connection. The server still receives the password in either case.
In this separate example the expected host is api.example but the candidate is other.example. Do not send the reusable password. A counterfeit server could collect it even over its own HTTPS connection.
Source for this drawing: RFC 7617 · Read RFC section 4 ↗
New to this? Start hereA quick picture + helpful background
A message needs an address.
Think of a packet as a small addressed envelope. Devices pass it onward; transport protocols decide what delivery promises an application gets.
Helpful first, if these ideas are unfamiliar
These pictures are analogies to help you learn. The linked RFC explains the actual rules.
Terms in this drawing
- TLS
- Transport Layer Security, used by HTTPS to protect the connection.
- Credential
- Data presented to authenticate; its handling and intended recipient matter.
Related RFCs and changes
“Updates” changes part of an earlier RFC. “Obsoletes” replaces it. This list shows selected related documents.
Because passwords are transmitted as recoverable credentials, Basic SHOULD NOT protect sensitive or valuable information without enhancements such as HTTPS.
- Because passwords are transmitted as recoverable credentials, Basic SHOULD NOT protect sensitive or valuable information without enhancements such as HTTPS.
- HTTPS protects the network exchange; Base64 itself does not. A recipient server can decode the credential after TLS terminates.
- A counterfeit server can ask for and retain passwords. A secure connection alone does not justify sending a reusable password to an unintended host.
- Password reuse increases harm across sites. Servers ought to protect stored passwords, avoiding plaintext and unsalted digests; TLS does not solve database leaks.
The first state is an explicitly unsafe comparison, not deployment advice. The second assumes correctly established HTTPS to the intended server. The third separates a wrong-recipient risk from a secure transport: the client stops before sending to other.example. No claim that Basic provides phishing resistance, freshness, replay prevention or password storage protection. Do not type real credentials into this educational site.
Read the RFC section ↗