F

随机密码生成器Password Generator

生成高强度随机密码,支持自定义长度和字符集Generate strong random passwords with customizable length and charset.

关于 随机密码生成器About Password Generator

绝大多数账号被盗都源于弱密码或密码复用。本工具基于浏览器提供的密码学安全随机源生成高强度随机密码,支持自定义长度与字符集(大小写、数字、特殊符号),满足银行、企业系统等各类复杂度要求。Most account takeovers stem from weak or reused passwords. This tool generates strong random passwords using a cryptographically secure random source in the browser, with customizable length and character sets (uppercase, lowercase, digits, symbols) to meet the complexity rules of banks, enterprise systems and more.

使用方法How to Use

  1. 通过滑杆设置密码长度,重要账号建议 12 位以上。Set the password length with the slider — 12+ characters is recommended for important accounts.
  2. 勾选需要包含的字符类型:大写字母、小写字母、数字、特殊符号。Tick the character types to include: uppercase, lowercase, digits and symbols.
  3. 点击生成按钮获得随机强密码,可多次生成挑选。Click generate to get a strong random password; regenerate as often as you like.
  4. 复制密码并保存到密码管理器中,避免明文记录在纸面或聊天工具里。Copy the password into a password manager instead of writing it down in plain text.

常见问题FAQ

密码设置多长才安全?How long should a password be?

长度对安全性的贡献大于复杂度。重要账号建议 12–16 位以上;若服务支持,使用更长的随机密码或密码短语更好。Length contributes more to security than complexity. Use 12–16+ characters for important accounts; longer random passwords or passphrases are even better where supported.

生成的密码是真正随机的吗?Are the generated passwords truly random?

是。工具使用浏览器的加密级安全随机数接口(而非可预测的 Math.random),生成的结果不可被攻击者预测。Yes. The tool uses the browser’s cryptographically secure random API (not the predictable Math.random), so results cannot be predicted by an attacker.

每个网站都应该用不同的密码吗?Should I use a different password for every site?

应该。密码复用意味着一个网站泄露、全部账号遭殃。用生成器为每个站点生成唯一密码,并交由密码管理器保存,是当前的最佳实践。Yes. Reuse means one breach compromises everything. Generating a unique password per site and storing it in a password manager is the current best practice.

生成的密码是真正的随机数吗?Are the generated passwords truly random?

使用浏览器 crypto.getRandomValues 这一加密安全随机源生成,而非 Math.random 伪随机数,可用于密码等敏感场景。They are produced with the browser's cryptographically secure crypto.getRandomValues, not Math.random — safe for passwords and other sensitive use.

生成的密码会被记录或上传吗?Are generated passwords stored or uploaded?

不会。所有生成都在浏览器本地完成,密码不会离开你的设备,也不会写入任何存储、日志或统计。No. Everything is generated locally in your browser; passwords never leave your device and are not written to any storage, log or analytics.

相关阅读Related Reading

相关工具Related Tools