./prontouso.com
WEB & JARINGAN

Penghasil Header HTTP Basic Auth

Masukkan nama pengguna dan kata sandi untuk menghasilkan header HTTP `Authorization: Basic <base64>` yang siap disalin ke permintaan cURL, Postman, atau konfigurasi Nginx/Apache.

Status alatBerjalan di browser Anda
Pratinjau

Generator Basic Auth

Header Authorization

Cara kerja

  1. Masukkan data Anda

    Isi nilai yang diperlukan, tempel teks Anda, atau unggah file yang ingin diproses.

  2. Lihat hasil seketika

    Sebagian besar alat diperbarui secara langsung saat Anda mengetik; beberapa menggunakan satu tombol tindakan.

  3. Gunakan hasil Anda

    Salin, unduh, atau bagikan hasil yang dihasilkan — Anda selalu memiliki kendali penuh atas data Anda.

Privasi dan pemrosesan dataBerjalan secara lokal di browser Anda. Alat ini tidak mengunggah data Anda.

Apa itu Penghasil Header HTTP Basic Auth?

Build the base64-encoded Authorization header value for HTTP Basic Authentication from a username and password.

PAHAMI CARA KERJA ALAT

How to generate a Basic Authentication header

What Basic Auth is

HTTP Basic Authentication (RFC 7617) sends credentials as "username:password", base64-encoded, inside an Authorization header — Authorization: Basic <encoded value>. Base64 is an encoding, not encryption, so this scheme is only safe to use over HTTPS.

How to use it

  • Enter the username and password.
  • Copy the generated "Basic ..." header value.
  • Send it as the Authorization header on your request (in curl: -H "Authorization: Basic ...").

Security considerations

Because base64 is trivially reversible, never send this header over plain HTTP, and avoid Basic Auth entirely for anything sensitive if the API offers a token-based alternative.

Header format

Authorization value
Basic base64(username + ":" + password)

demo:s3cret

The username and password are joined with a colon before UTF-8 Base64 encoding.

Authorization: Basic ZGVtbzpzM2NyZXQ=

Credential string notes

The generated header is just Base64 text for username:password. Treat it like a credential and avoid leaving it visible after copying.

Pertanyaan yang Sering Diajukan (FAQ)

Is Basic Auth secure?

Only when used over HTTPS. The credentials are merely base64-encoded, not encrypted, so anyone who can read the raw request over plain HTTP can recover them instantly.

Does this work with accented letters or emoji in the password?

Yes. The username and password are UTF-8 encoded before being base64-encoded, so any Unicode character is handled correctly.

Where does this header go?

In the Authorization request header, exactly as generated, e.g. Authorization: Basic dXNlcjpwYXNz.

Is Basic Auth encrypted?

No. Basic Auth is only Base64-encoded. It should be used over HTTPS and treated like any other credential.