Secure Password Tips: How to Create Strong Ones
- Offline attack time (fast hash)
- Result
- Your password
- 0
- You entered
- Password length
- 12 characters
- You entered
To protect your accounts, create passwords that are long, unique, and random—ideally 12 characters or more, with no personal information or common words. Use a password manager to generate and store them, and enable two-factor authentication as a second layer of defense. This guide explains the reasoning behind these rules and shows you how to apply them step by step.
Formula
The strength of a password is measured by its entropy, which estimates how many guesses an attacker would need to find it. For a random password of length L drawn from a character set of size N, the entropy in bits is:
Entropy = L × log₂(N)
Where:
- L = number of characters in the password
- N = size of the character set (e.g., 26 lowercase letters, 52 upper+lower, 94 if you include digits and symbols)
- log₂(N) = logarithm base 2 of N
The calculator above uses N = 94 (all printable ASCII characters) and estimates the time to crack the password with an offline attack at 10 billion guesses per second—a typical speed for a powerful GPU cluster. The result is a rough lower bound; real-world times vary with hardware and hashing method.
Worked Example
Using the default values from the calculator: a password of length 12 with 94 possible characters.
- Entropy = 12 × log₂(94) ≈ 12 × 6.5546 ≈ 78.65 bits
- Number of guesses = 2^78.65 ≈ 4.9 × 10^23
- Time at 10 billion guesses/sec = 4.9 × 10^23 / 10^10 = 4.9 × 10^13 seconds
- Convert to years: 4.9 × 10^13 / (3600 × 24 × 365) ≈ 1.55 million years
So a 12-character random password would take about 1.5 million years to crack with that hardware. That is why length is the most important factor.
Why Length Beats Complexity
Many people think adding a symbol or uppercase letter makes a password “strong,” but length matters far more. Each additional character multiplies the number of possible passwords by the size of the character set. For example:
- An 8-character password with 94 characters has about 6 × 10^15 combinations.
- A 12-character password has about 4.9 × 10^23 combinations—roughly 80 million times more.
Even a password made only of lowercase letters, if it is 20 characters long, has more combinations than a 12-character password with symbols. So prioritize length first, then add variety if you can.
How to Choose a Strong Password
The best passwords are random strings of characters. Since humans are bad at remembering random strings, use these methods:
- Password manager: Let it generate and store a random 16–20 character password for each site. You only need to remember one master password.
- Passphrases: Combine 4–6 random words (e.g., “correct horse battery staple”). Make sure they are truly random, not a quote or song lyric.
- Avoid personal info: No birthdays, names, pets, or phone numbers—these are easily guessed or found online.
- Avoid common patterns: No “123456”, “password”, “qwerty”, or keyboard paths like “1qaz2wsx”.
If you must remember a password without a manager, use a passphrase and add a few random characters to it.
Common Mistakes and Misconceptions
Many people believe that changing passwords frequently makes accounts safer. In fact, frequent changes often lead to weaker passwords because people append numbers (Password1!, Password2!) or reuse old ones. The current guidance from security experts is to change a password only when you suspect it has been compromised.
Another misconception is that a “complex” password like “P@ssw0rd!” is strong. It is not—it uses common substitutions that attackers know. Similarly, using the same password across multiple sites is dangerous: if one site is breached, attackers will try that password on your email, bank, and social media accounts.
How Attackers Steal Passwords
Understanding the threats helps you defend against them:
- Phishing: Fake emails or websites trick you into typing your password. Always check the URL and use a password manager that auto-fills only on the correct site.
- Data breaches: Hackers steal password databases from companies. If you reuse passwords, they can access your other accounts.
- Brute force: Automated tools try millions of combinations per second. Long passwords make this impractical.
- Keyloggers: Malware records your keystrokes. Use antivirus software and avoid downloading files from unknown sources.
- Social engineering: Attackers may call or message you pretending to be support. Never share your password with anyone.
Two-factor authentication (2FA) adds a second step—like a code from an app or a text—so even if your password is stolen, the attacker cannot get in without that code.
Password Managers vs. Memory
Password managers (like Bitwarden, 1Password, or KeePass) are the most practical way to use unique, random passwords for every site. They encrypt your password database with a master password that you must remember. The risk is losing that master password—there is no recovery. To mitigate that, write it down and store it in a safe place (not on your computer).
If you prefer not to use a manager, use a passphrase system: pick four random words from a diceware list, and you get a password that is hard to crack but easy to type. The key is randomness—do not choose words that form a sentence.
Frequently Asked Questions
How long should my password be?
At least 12 characters, but 14–16 is safer for important accounts like email and banking. The longer the better, as long as you can manage it with a password manager.
Is it okay to use a passphrase instead of a random string?
Yes, if the words are randomly chosen and you have at least 4–5 of them. A passphrase like “blue-tiger-sunset-phone” is much easier to remember than “X#9kP!2mQ” and just as secure, provided you do not use a famous quote.
Should I change my passwords regularly?
Only if you suspect a breach. Regular forced changes often lead to weaker passwords. Instead, check if your email has been involved in a breach using services like Have I Been Pwned, and change passwords immediately if it has.
What is two-factor authentication and do I need it?
2FA requires a second verification step beyond your password, such as a code from an authenticator app or a hardware key. It is essential for email, banking, and social media accounts because it blocks most account takeovers even if your password is stolen.
Can I use the same password for multiple accounts if it is strong?
No. If one site is breached, attackers will try that password on other sites. Always use a unique password for each account, especially for email and financial services.
What should I do if my password is compromised?
Change it immediately on that site and on any other site where you used the same password. Enable 2FA, and consider using a password manager to generate new random passwords.
Related
Formula used
in pass | Your password | - | 0 | 0 in len | Password length | characters | 12 | 8 out entropy | Estimated entropy | bits | len * log2(94) | 0 out crack_time | Offline attack time (fast hash) | - | (2^entropy) / 1e10 / 3600 / 24 / 365 | 0
Each line is one input (in, sel, list) or one result (out: label, unit, formula, decimals). How the calculators work
Method: the standard formula for this calculation, rounded as each result states. See how the calculators work or report an error.