Rete/HTTP
Basic Auth Generator
Generare o decodificare l'intestazione HTTP Basic Authentication — Base64(nome utente:password).
HTTP Basic Authentication sends a username and password in the Authorization header as Base64("username:password"). That's encoding, not encryption, so Basic Auth only makes sense on top of HTTPS.
How to use it
- Generate: enter a username and password and the tool builds the username:password string, Base64-encodes it, and produces a ready Authorization: Basic ... header.
- Decode: paste an existing Basic Auth header to decode it back into a username and password.
- Copy the finished header straight into curl, Postman, or a server config.
Common uses
- Building a header for manually testing an API with curl or Postman without running client code.
- Setting up basic authentication on nginx/Apache or in a reverse-proxy config.
- Decoding a header from logs or captured traffic while debugging an authentication issue.
Things to keep in mind
Base64 is not encryption — anyone intercepting the header instantly recovers the username and password in plain text.
Basic Auth is only safe over HTTPS — without TLS, credentials travel essentially in the clear.
Domande frequenti
Come viene effettivamente costruita un'intestazione Basic Auth?
Il nome utente e la password sono uniti da due punti (user:password), poi l'intera stringa viene codificata in Base64 e preceduta da "Basic " nell'intestazione Authorization — è codifica, non crittografia.
È sicuro usare Basic Auth su HTTP semplice?
No. Poiché le credenziali sono solo codificate in Base64, chiunque intercetti il traffico può decodificarle banalmente — Basic Auth dovrebbe essere usato solo su HTTPS.
Questo strumento invia il mio nome utente o password da qualche parte?
No. L'intestazione viene generata interamente nel tuo browser — nulla viene inviato a un server.
Come si fa il "logout" da un sito protetto con Basic Auth?
Non esiste un modo standard — il browser mette in cache le credenziali finché la scheda resta aperta. Il metodo più affidabile è chiudere tutte le schede di quel sito o cancellare i dati del sito nelle impostazioni del browser.
Si possono usare caratteri speciali nel nome utente o nella password per Basic Auth?
Sì, ma i due punti all'interno del nome utente stesso creano ambiguità in fase di decodifica, quindi la specifica raccomanda di evitare i due punti nel nome utente.