为什么要用密码生成器?
人类很不擅长随机。我们重复用密码、选词典里的词、末尾加个可预测的“!”。攻击者深谙此道——撞库机器每分钟在数千网站上尝试泄露的密码。一个 16 位随机密码约有 95 位熵;以现有算力暴力破解,耗时超过宇宙年龄。下面的生成器使用浏览器的加密级随机数源(crypto.getRandomValues),和 TLS 密钥是同一套机制。
如何创建高强度密码
1. 设置长度(推荐 16 位以上;重要账户 20 位以上)。
2. 保持所有字符类型开启,以获得最大熵值。
3. 点击生成密码,然后点击任意密码即可复制。
4. 存到密码管理器里——不要在多个网站重复使用。
密码小贴士
长度胜过复杂度:20 位纯小写密码,比 8 位“大小写+数字+符号”混合更强。凡是支持双重验证的地方都开启——再强的密码也可能泄露。也不要在不信任的网站上生成密码;本页面是纯离线可用的 JavaScript,加载完甚至可以断网使用。
常见问题
Are generated passwords stored anywhere?
No. Generation uses crypto.getRandomValues() in your browser. Nothing is sent to any server, logged, or stored — closing the tab erases everything.
How long should my password be?
16 characters minimum for most accounts, 20+ for email, banking and password managers. Every extra character multiplies guessing time exponentially.
What does the strength meter measure?
Entropy in bits, estimated from the character pool size and length. 80+ bits is strong, 100+ is excellent. It does not account for dictionary attacks — but random passwords have no dictionary pattern.
Should I use symbols?
They add entropy, but length matters more. Some older sites reject symbols; in that case just make the password longer.
Is this safe to use on a public computer?
The generation itself is safe, but avoid copying passwords on untrusted machines (keyloggers). Generate on your own device.