随机字符串生成器

0 字符
0 字符

  • ✔️ 至少8个字符
  • ✔️ 大写字母
  • ✔️ 小写字母
  • ✔️ 数字
  • ✔️ 特殊字符
常见问题
What makes a strong password?

A strong password has at least 12 characters and combines uppercase letters, lowercase letters, numbers and special symbols. Avoid dictionary words, names, or repeated patterns. Use a unique password for every account.

Is the generated string secure?

Generation happens entirely in your browser — nothing is sent to any server. The randomness comes from Math.random(), which is suitable for most non-cryptographic purposes. For cryptographic keys, use a dedicated tool with a CSPRNG.

关于随机字符串生成

随机字符串 常用于生成密码、令牌、盐值、验证码等。随机性越强,安全性越高。

  • 🔤 字符集: 您可以选择包含小写字母、大写字母、数字和符号。至少需要选择一个字符集。
  • 📏 长度: 建议密码长度至少为8位;若需高安全性,建议12位或以上。
  • 🎲 随机性: 本工具使用 JavaScript 的 Math.random(),适用于一般用途。若需密码学安全随机数,建议使用 crypto.getRandomValues()(暂未支持)。
  • 💡 点击“生成”按钮创建随机字符串,结果将显示在输出框中,下方会显示其长度。