基础认证生成器
按参数生成基础认证结果。
使用步骤
如何使用
- Enter the username and password for your request.
- Generate the header locally.
- Copy the Authorization value into your development request or API client.
What this generates
The result follows the HTTP format Authorization: Basic <base64 credentials>. The encoded value contains the username, a colon, and the password.
Use HTTPS
Basic authentication is Base64 encoding, not encryption. Always send the header over HTTPS and avoid committing it to source code, logs, or public URLs.
Local and ephemeral
Encoding runs in your browser. Credentials are not uploaded or saved by this page; clear the fields after copying when working on a shared device.
常见问题
你可能还想知道
Does Base64 protect my password?
No. Base64 is reversible text encoding. Use HTTPS and treat the header as a secret.
Can I use this with an API?
Yes. Copy the complete Authorization header into a secure HTTPS request or your API client’s Basic Auth setting.
Are my credentials sent anywhere?
No. This page performs the encoding locally and does not send or store the entered values.
Can I encode non-English credentials?
The generator encodes the username and password as UTF-8 before Base64 encoding. Confirm that your server expects UTF-8 Basic authentication.