跳到主要内容
uencoder

生成 a cryptographically secure random password

Create high-entropy password using cryptographically 安全 random generator, 具有 control 遍历长度和 字符 sets.

  1. 1

    安全 password 必须是 generated 从 cryptographically 安全 random 源 (CSPRNG), 不 Math.random(). Length 和字符集合确定 entropy: 16+ mixed characters gives ~100 bits, strong 针对离线 brute force.

  2. 2
    密码生成器 →

    集合长度 (16-32 recommended) 和选择字符 sets (下, 上, digits, symbols). tool 我们 Web Crypto API CSPRNG.

  3. 3
    随机字节生成器 →

    为 non-password random tokens (API 关键, 会话 IDs), use 此 tool 到生成 hex 或 Base64 random strings 的 specified 字节长度.

  4. 4

    Verify 输出 contains characters 从每个 selected 集合. Avoid ambiguous characters (0/O, 1/l/I) 如果 password 将是 transcribed 通过 hand — 一些 generators offer '排除 ambiguous' 选项.

常见问题

如何长 应该 my password 是?
为在线 services 具有速率 limiting, 12-16 characters suffice. 为离线攻击 scenarios (encrypted backups, 本地 vaults), use 20+ characters. 每个 additional 字符 multiplies brute-force 成本通过 alphabet 大小.
是 passphrases better than random passwords?
Random passphrases (4-6 words 从 7776-字列表) achieve similar entropy 到 16-char random passwords 但是 easier 到类型和 记住. Use random passwords 为 machine/API contexts 和 passphrases 为 human-typed logins.

相关工具