← 返回工具首页

密码生成器

生成高强度随机密码,可调长度与字符集(大写/小写/数字/符号),带实时强度条,全程本地。

-
强度
弱

密码由浏览器加密安全随机数生成,全程本地、不上传;强度按信息熵估算。

工具介绍 · About this tool

中文介绍

弱密码(生日、姓名、"123456")是账号被盗的头号原因。高强度密码应当是「足够长 + 字符类型混合 + 真正随机」——但人脑想出来的往往有规律。这个工具用浏览器内置的加密安全随机数生成密码,可自由组合大写、小写、数字、符号,并按信息熵实时估算强度。

所有计算都在本地浏览器完成,密码不会被上传或记录。

常见问题

多长的密码算安全?

一般建议至少 12 位,重要账号用 16 位以上。若只用小写字母,16 位熵约 75 bit;加上大小写数字符号后同样 16 位可达 100 bit 以上,暴力破解需天文数字的算力。

为什么要用「加密安全随机数」而不是 Math.random()?

Math.random() 是伪随机且可预测,不适合做密码。本工具用 Web Crypto 的 getRandomValues,从操作系统的安全随机源取数,无法被预测。

生成了记不住怎么办?

推荐存进密码管理器(如浏览器自带的或 1Password/Bitwarden),为每个网站用不同密码,主密码只记一个。

English

Weak passwords (birthdays, names, "123456") are the number-one cause of account takeovers. A strong password should be long, mix character types, and be truly random — but human-made ones usually follow patterns. This tool generates passwords from the browser's cryptographically secure random source, with freely combined uppercase, lowercase, numbers and symbols, and a live entropy-based strength meter.

Everything runs locally in your browser; passwords are never uploaded or stored.

FAQ

How long should a password be?

At least 12 characters is recommended; use 16+ for important accounts. 16 lowercase letters give about 75 bits of entropy; adding mixed character sets pushes 16 characters past 100 bits, making brute force computationally infeasible.

Why use cryptographically secure randomness instead of Math.random()?

Math.random() is pseudo-random and predictable, unfit for passwords. This tool uses Web Crypto getRandomValues, which draws from the operating system's secure entropy source and cannot be predicted.

What if I can't remember the generated password?

Store it in a password manager (your browser's built-in one, or 1Password/Bitwarden), use a different password per site, and memorize only one master password.