What actually makes a password strong
自訂長度和字符集,生成包含大寫、小寫、數字和符號的強隨機密碼。
Ax7CQHF4KjcYKy23What actually makes a password strong
A password is strong when it is hard to guess, and "hard to guess" has a precise meaning: the number of possibilities an attacker would have to try. That number depends on two things — how many characters the password has, and how many options each character is drawn from. This generator uses the browser's cryptographically secure random source (crypto.getRandomValues), so every character is genuinely unpredictable, not the output of a weak Math.random.
Length matters far more than symbols. Adding one random lowercase letter multiplies the search space by 26; switching a 10-character password to 16 characters multiplies it by 26^6 — over 300 million times. This is why a long passphrase of ordinary words can be stronger than a short string of "@$!" gibberish, and much easier to type. Complexity rules exist mainly to stop people choosing "password1"; past a reasonable minimum they add little.
The threat model is offline cracking. If a service is breached and its password hashes leak, attackers run billions of guesses per second against them using wordlists, previously-leaked passwords, and predictable substitutions (a→@, o→0). A password built from real random characters has no pattern to exploit, so the only attack left is brute force — which a sufficiently long one makes infeasible.
Entropy basics: each extra bit of entropy doubles search space. Length beats complexity once attackers rely on dictionaries—prefer passphrases (long, memorable) or long random strings from a generator for machine storage.
Do / don’t: do enable a password manager; do rotate after breaches; don’t reuse banking passwords on hobby forums; don’t screenshot vault exports to cloud albums.
Related: UUIDs identify rows; passwords authenticate humans—don’t substitute one for the other.
How passwords are generated and rated
Each character is drawn from your browser’s cryptographically secure generator, with rejection sampling so every character in the set is exactly equally likely. Every character type you tick is guaranteed to appear at least once — so the password passes sites that insist on a digit or a symbol — and the positions are then shuffled. The password is created on your device and never sent anywhere.
The strength meter measures how many passwords the generator could have produced: length × log2(number of possible characters), in bits. Under 50 bits is rated weak, 50–69 fair, 70–99 strong and 100 or more very strong. Each extra bit doubles the work for an attacker.
Worked examples
Length Character set Entropy Rating 8 letters + digits (62) 48 bits Weak 16 letters + digits (62) 95 bits Strong 12 all four sets (88) 78 bits Strong 20 all four sets (88) 129 bits Very strong 64 lowercase only (26) 301 bits Very strong
Length does more than variety: a 16-character letters-and-digits password is stronger than a 12-character one with symbols. Add symbols when a site caps the length, or when it requires them.
Passphrases for the passwords you must remember
For the few passwords you type from memory — your password manager’s master password, your computer login — a passphrase of random words is easier to remember at the same strength. With a 7,776-word list (the EFF dice list), each word adds about 12.9 bits: four words give about 52 bits, six words about 78. The words must be chosen randomly, not picked by you; a favourite quote or song lyric is easy to guess no matter how long it is.
Using generated passwords well
- Use a different password for every account, stored in a password manager. Reuse, not weakness, is how most accounts are taken over after another site is breached.
- Turn on two-factor authentication or passkeys where offered; they protect you even if a password leaks.
- Change a password when a service reports a breach, not on a fixed schedule.
In-depth guides
- Password Strength Explained: Entropy, Length and Passphrases
What “strong” means in bits, why length beats symbols, how long passwords hold up against offline cracking, and a practical setup with a password manager.
Related tools
These free tools pair well with this page — open them in a new tab to finish your workflow.
常見問題
生成的密碼安全嗎?
密碼使用瀏覽器內建的密碼安全亂數生成器(window.crypto.getRandomValues)生成。它們永遠不會離開您的瀏覽器——沒有密碼會被發送到任何伺服器。一個使用所有字元類型的16位密碼有超過95^16種可能的組合。
什麼使密碼變得強大?
對隨機產生的密碼而言,強度就是可能組合的數量:長度 × log2(字元集大小),以位元計。長度比字元種類更重要——20 位隨機小寫字母(約 94 位元)強於 12 位包含大小寫、數字和符號的隨機密碼(約 78 位元)。當網站限制長度時,增加字元種類最有幫助。避免規律、字典詞和個人資訊,它們會讓密碼遠弱於其長度所顯示的強度。
什麼是密碼短語,它比隨機密碼更好嗎?
密碼短語是一系列隨機詞語(如"correct horse battery staple")。長密碼短語既安全又比隨機字元串更容易記憶。從7,776個詞彙庫(骰子密碼)中選出的4個詞組合約有51位熵,與10位隨機密碼相當。
我應該使用密碼管理器嗎?
應該。密碼管理器為每個網站生成和儲存獨特的複雜密碼,您只需記住一個主密碼。熱門選項包括Bitwarden(免費開源)、1Password和Dashlane。在多個網站使用相同密碼是重大安全風險。
為什麼應該避免在密碼中使用個人資訊?
攻擊者使用社會工程學和資料外洩資訊來猜測密碼。如果您的密碼包含名字、生日、寵物名字或喜歡的球隊,即使密碼看起來很複雜,也可能通過定向攻擊被猜出。應始終使用隨機生成的密碼。