密码生成器 使用教程
详细使用指南、最佳实践与常见问题解答
使用场景
密码生成器适用于注册新账号、修改密码、设置 Wi-Fi 密码、生成 API 密钥、数据库密码等场景。当你需要一个高强度、不重复、难以被暴力破解的密码时,这个工具能在毫秒级生成符合安全要求的随机密码。
Use Cases
The password generator is useful for registering new accounts, changing passwords, setting Wi-Fi passwords, generating API keys, database passwords, and more. Use it when you need a high-strength, unique, brute-force-resistant password in milliseconds.
功能特点
- 可调长度:4 到 64 位密码长度自由选择
- 字符类型:大小写字母、数字、符号可选
- 强度指示:实时显示密码强度(弱/中/强)
- 安全随机:使用 crypto.getRandomValues 加密级随机源
- 排除相似字符:可选排除 0/O/1/l/I 等易混淆字符
Features
- Adjustable length: 4 to 64 characters
- Character types: upper/lower case, digits, symbols selectable
- Strength indicator: real-time strength display (weak/medium/strong)
- Cryptographic random: uses crypto.getRandomValues CSPRNG
- Exclude similar: optional removal of confusing chars like 0/O/1/l/I
使用示例
示例 1:场景一:注册重要账号(邮箱、银行)时,生成长度 20 位、包含所有字符类型的强密码。
示例 2:场景二:为 Wi-Fi 设置密码,勾选"排除相似字符"避免家人输入时混淆 0/O。
示例 3:场景三:生成 API 密钥,使用 32 位长度 + 大小写字母数字组合,满足大多数平台要求。
Examples
Example 1: Scenario 1: Generate a 20-character password with all character types for important accounts (email, banking).
Example 2: Scenario 2: Set a Wi-Fi password with "exclude similar characters" enabled so family members don't confuse 0/O.
Example 3: Scenario 3: Generate a 32-character API key with upper/lower case + digits to meet most platform requirements.
最佳实践
- 密码长度至少 12 位,重要账号建议 20 位以上
- 同时使用大小写字母、数字、符号四种字符类型
- 每个账号使用独立密码,避免一处泄露影响多处
- 建议配合密码管理器(如 1Password、Bitwarden)存储密码
Best Practices
- Use at least 12 characters; 20+ for important accounts
- Include all four character types: upper, lower, digits, symbols
- Use a unique password for each account to limit breach impact
- Pair with a password manager (e.g., 1Password, Bitwarden) for storage
常见问题
生成的密码安全吗?会被记录吗?
非常安全。密码使用浏览器原生的 crypto.getRandomValues 加密级随机数生成器,生成的密码完全本地处理,不发送到任何服务器,不留任何日志。
为什么生成的密码看起来很复杂?
这是有意为之。强密码应该看起来随机且无规律,避免被字典攻击和模式猜测破解。复杂度正是安全性的体现。
强度指示的"强"是什么标准?
"强"通常意味着长度 ≥ 16 位,且包含大小写字母、数字、符号四种字符类型。这种密码在当前算力下被暴力破解需要数百万年。
FAQ
Are the generated passwords safe? Are they logged?
Very safe. Passwords are generated using the browser's native crypto.getRandomValues CSPRNG. Generation happens entirely locally with no server transmission and no logging.
Why do generated passwords look so complex?
By design. Strong passwords should appear random and patternless to resist dictionary attacks and pattern guessing. Complexity is the point.
What does "strong" mean in the strength indicator?
"Strong" typically means 16+ characters with all four character types (upper, lower, digits, symbols). Such passwords would take millions of years to brute-force with current computing power.