首页Home › 编码与加密Encoding & Crypto
🔐 .htpasswd 生成器htpasswd Generator
为 Apache/Nginx 基本认证生成 .htpasswd 密码行,支持 bcrypt、Apache MD5(apr1)和 SHA-1,全部本地计算。Generate .htpasswd lines for Apache/Nginx basic auth using bcrypt, Apache MD5 (apr1) or SHA-1 — all computed locally.
使用说明与常见问题How-to & FAQ
「.htpasswd 生成器」是什么?What is the htpasswd Generator tool?
为 Apache/Nginx 基本认证生成 .htpasswd 密码行,支持 bcrypt、Apache MD5(apr1)和 SHA-1,全部本地计算。Generate .htpasswd lines for Apache/Nginx basic auth using bcrypt, Apache MD5 (apr1) or SHA-1 — all computed locally.
如何使用「.htpasswd 生成器」?How do I use the htpasswd Generator tool?
在「.htpasswd 生成器」中,按需设置「用户名」、「密码」、「算法」等选项,然后点击「生成」、「复制」按钮即可。In the htpasswd Generator: Set "Username", "Password", "Algorithm", then click "Generate", "Copy".
该用哪种算法?Which algorithm should I use?
推荐 bcrypt,安全性最高且被现代 Apache/Nginx 支持;apr1 兼容性好但强度一般;SHA-1 已过时,仅用于兼容旧系统。bcrypt is recommended (strongest, supported by modern Apache/Nginx); apr1 is widely compatible but weaker; SHA-1 is outdated and only for legacy systems.
编码和加密有什么区别?Is encoding the same as encryption?
编码(如 Base64、URL 编码)可直接还原,不提供保密性;加密需要密钥。「.htpasswd 生成器」的处理全部在本地完成。No. Encoding (Base64, URL…) is reversible by anyone; encryption needs a key. The htpasswd Generator works fully offline in your browser.
「.htpasswd 生成器」免费吗?需要注册吗?Is the htpasswd Generator free? Do I need an account?
「.htpasswd 生成器」完全免费,无需注册或安装,打开网页即可使用,手机和电脑都能用;输入的内容只在你的浏览器本地处理。The htpasswd Generator is completely free with no sign-up or install and works on phones and desktops; what you enter is processed only in your browser.