← 返回工具列表
☀️
Basic Auth 生成器
生成 HTTP Basic Authentication 头部,用于 API 认证
用户名
密码
生成
清空
生成结果
Base64 编码
复制
Authorization 头
复制
cURL 命令
复制
fetch 示例
复制
Basic Auth 原理:
将
username:password
进行 Base64 编码,然后添加
Basic
前缀作为 Authorization 头的值。
注意:
Basic Auth 以明文传输凭据(仅 Base64 编码),请务必通过 HTTPS 使用。