htpasswd在线生成工具
开发辅助
在线生成Apache htpasswd密码文件,支持多种加密算法(bcrypt、crypt、SHA、MD5)
单个用户生成
MD5 (Apache APR1) Apache默认格式,平衡安全性和性能
htpasswd格式说明
| bcrypt | username:$2y$10$salt+hash - 最安全,推荐使用 |
|---|---|
| MD5 (Apache APR1) | username:$apr1$salt$hash - Apache默认格式,平衡性好 |
| SHA | username:{SHA}base64hash - SHA哈希算法 |
| crypt | username:salthash - 传统Unix加密,兼容性最好 |
| 明文 | username:password - 不加密,仅用于测试环境 |