Please enable JavaScript to use CodeHS

Cybersecurity Beginner Friendly

How Strong Is Your Password?

A computer can guess billions of passwords every second. Find out how that works, why the length of a password matters more than the weird symbols in it, and how to build one that would take centuries to break.

7 min read Middle & High School
01

Why Your Password Actually Matters

Think about everything you keep behind a password. Your school account. Your email. Your photos. Your game account with three years of progress in it. For most of those, a password is the only thing standing between you and a stranger who wants in.

Here is the part most people get wrong. They picture a hacker sitting at a keyboard, typing guesses one at a time. That is not how it works. Attackers run software that makes guesses automatically, and a single fast computer can test billions of guesses every second.

Where do they get the chance to guess that fast? Usually from a data breach. A data breach is when someone steals a company's files, including the list of every user's login information. Once an attacker has that file on their own machine, nothing stops them. They are not typing into a login page that locks them out after five tries. They are grinding through guesses offline, as fast as their hardware allows.

One password, many doors

If you use the same password on ten sites and just one of those sites gets breached, an attacker will try that same password everywhere else. This is called credential stuffing, and it is the single most common way accounts get taken over. Every account deserves its own password.

02

Brute Force: Trying Every Single Combination

A brute force attack means guessing every possible combination until one of them works. There is nothing clever about it. It is just counting.

Imagine a friend picks a secret two digit code between 00 and 99. You could guess all 100 of them by hand in a few minutes. Boring, but it would work every time. Now bump it up to a four digit PIN. That is 10,000 possibilities, which would take you hours. A computer finishes it before you let go of the enter key.

brute-force-demo
$ guess --target pin --length 4 --charset 0-9
Search space: 10,000 combinations
Trying 0000, 0001, 0002 ...
[+] MATCH FOUND: 4271
Guesses tried: 4,272
Time elapsed: 0.00004 seconds

Every Extra Character Multiplies the Work

Here is the idea that makes passwords work at all. Each character you add does not add to the number of possibilities, it multiplies it. Using only lowercase letters, every new character multiplies the total by 26.

  • 4 letters: 456,976 combinations
  • 6 letters: about 309 million combinations
  • 8 letters: about 209 billion combinations
  • 12 letters: about 95 quadrillion combinations

Those numbers look huge, and the jump from 4 to 12 really is enormous. But remember the attacker's speed. At roughly 100 billion guesses per second, that 8 letter password falls in about two seconds. The 12 letter one buys you about a week. That is why we keep going.

About that 100 billion number

Every crack time on this page assumes an attacker with a stolen password file and a powerful graphics card, guessing about 100 billion times per second. That is a realistic setup for a serious attacker in 2026, and it gets faster every year. Guessing against a live website is far slower, but you should plan for the worst case.

03

Dictionary Attacks: Guessing the Smart Way

Brute force is patient but dumb. A dictionary attack is the shortcut, and it is what actually breaks most real passwords.

Instead of counting through every combination, the software works from a list. That list holds real words, names, sports teams, song titles, and, most importantly, millions of passwords that real people already used and that leaked in past breaches. The list is sorted so the most popular guesses go first. If your password appears anywhere on it, you are done in under a second, no matter how long it is.

The Tricks You Think Are Clever Are Already on the List

You might think you are safe because you did not use a plain word. You capitalized a letter, swapped an o for a 0, and stuck an exclamation point on the end. Cracking software applies those exact changes automatically. They are built in as rules:

  • Capitalize the first letter, or the whole word
  • Add 1, 123, or the current year to the end
  • Swap a for @, o for 0, e for 3, s for $
  • Add ! or # at the end
  • Spell the word backwards

So P@ssw0rd1! is not a strong password with a disguise. To the software it is the word "password" with five predictable rules applied, and it takes a fraction of a second.

Your life is a word list too

Before guessing anything, a targeted attacker reads your public profiles. Your dog's name, your birthday, your jersey number, your school mascot, your graduation year. All of it goes straight into a custom guess list. If a password is meaningful to you, it is guessable by someone who looked you up.

04

What Actually Makes a Password Strong

Almost every website tells you the same thing: use a capital letter, a number, and a symbol. That advice is not wrong, but it is missing the point. Those rules grow the character set, which is the pool of characters your password could be built from. Going from lowercase only (26 options per slot) to a full mix of upper, lower, numbers, and symbols (about 95 options per slot) is a real improvement.

But look at the math again. Growing the character set makes each slot harder. Adding a character adds a whole new slot. That is the bigger lever, by a lot.

Length beats complexity. A long password made of ordinary characters crushes a short password stuffed with symbols.

Estimated time to crack, at 100 billion guesses per second
Password Length Time to crack
password1 9 Instantly (it is on every list)
Purple7! 8 Instantly (a word plus known tricks)
Kp7$mQ2z 8 About 9 hours
purplebananatoast 17 Thousands of years
tacos-on-mars-2029 18 Trillions of years

Look at rows three and four. Kp7$mQ2z is the kind of password people are proud of, and it is genuinely random, but eight characters is just not enough anymore. Meanwhile purplebananatoast is all lowercase, has no symbols, and would outlast every person reading this page. It wins on length alone.

Which of these would take an attacker the longest to crack?

Correct. Sixteen lowercase letters give you far more combinations than five mixed characters, and unlike Summer2025! it is not a common word with a predictable year tacked on. Length is doing all the work here.

Not quite. The answer is myoldbluebicycle. Symbols only help a little, and Summer2025! is a dictionary word plus a year plus a symbol, which is a rule cracking software applies automatically. Sixteen plain letters beat both.

05

Try It Yourself

Type into the box below and watch the meter react. It scores what you type using the same ideas from this page: how long it is, how many kinds of characters it uses, and whether it looks like a word or pattern a cracking list already knows.

Do not type a real password

Use a made up example, not a password you actually use on any account. Everything here runs inside your own browser and nothing is ever sent anywhere, but typing a real password into any box on the internet is a habit worth never starting.

Live Strength Meter

Nothing you type leaves this page. It is not saved, sent, or logged.

No password yet

Estimated time for a fast computer to guess it Type an example above

  • At least 12 characters long
  • Uses both uppercase and lowercase
  • Includes at least one number
  • Includes at least one symbol
  • Not a common word, name, or pattern
Or load an example:

Try loading the examples in order. Notice that Purple7! scores worse than Kp7$mQ2z even though they are both eight characters with a capital, a number, and a symbol. The difference is that one is built on a word the cracking list already has, and the other is not.

These are estimates, not promises

This meter uses a simplified version of what security researchers do. It cannot know whether your exact password showed up in a breach last week, and real cracking software has far bigger word lists than the small one built into this page. Treat the result as a rough sense of scale, not a guarantee.

06

Passphrases: Long, Strong, and Actually Rememberable

Here is the obvious objection. Nobody can remember Kp7$mQ2z, and a 20 character random string is worse. That is exactly why people write passwords on sticky notes or reuse the same one everywhere.

A passphrase solves this. A passphrase is several unrelated words strung together into one long password. Because it is made of words, your brain can hold onto it. Because it is long, a computer cannot get through it.

otter-lamp-quiet-anchor
seven.violin.cactus.moon
BlanketTurtleGravyKite

Four random words with separators gets you past 20 characters without much effort. You can picture an otter holding a lamp, and that mental image is enough to remember it. Meanwhile the attacker has to grind through a search space with more combinations than there are grains of sand on Earth.

The One Rule That Makes or Breaks a Passphrase

The words have to be random. Not a song lyric. Not a movie quote. Not a sentence from a book. Not "I love my dog Rufus." Anything that already exists as a phrase somewhere is in a word list, and phrase based cracking lists are real and enormous. Pick words that have no business being next to each other.

How to pick truly random words

Do not pick them out of your head, because your brain is bad at random and tends to pick related things. Open a physical book to a random page and take the first noun you see. Do that four times. Or roll dice against a numbered word list, a method called diceware.

You create one really strong password and use it on all ten of your accounts. One of those ten sites gets breached. What happens next?

Exactly. Once a password is stolen from one site, its strength stops mattering, because nobody has to guess it anymore. Attackers immediately try that email and password combination on banks, email providers, and game platforms. Strength protects you from guessing. Only uniqueness protects you from a breach.

Not quite. The right answer is that all ten accounts are at risk. Strength only protects you while someone still has to guess. After a breach the attacker has your actual password, so they simply type it in everywhere else you might have an account. That is why every account needs a different password.

07

Two Layers That Do the Heavy Lifting

By now you have probably spotted the problem. You need a long, unique password for every single account, and you have dozens of accounts. Nobody can do that from memory. You are not supposed to.

Password Managers

A password manager is an app that creates and stores your passwords in an encrypted vault. Encrypted means the contents are scrambled so that only someone with the right key can read them. It fills passwords in for you when you log in, so you never type them.

You memorize exactly one thing: the master password that unlocks the vault. That one should be a long passphrase, and it should be used nowhere else. Every other password can be 24 random characters, because you will never have to type or remember any of them.

Password managers also catch a trick that fools humans. If a fake site is pretending to be your bank, the manager will not autofill, because the web address does not match. That silence is a warning worth paying attention to.

Two Factor Authentication

Two factor authentication, usually shortened to 2FA, means proving who you are in two different ways instead of one. The first factor is something you know, which is your password. The second is something you have, usually your phone.

This matters because it breaks the whole attack. Even if someone steals or guesses your password perfectly, they still get stopped at the second step, because they do not have your phone in their hand.

  • Best: a physical security key, a small device you plug in or tap
  • Great: an authenticator app that generates a fresh six digit code every 30 seconds
  • Still worth turning on: codes sent by text message, which are weaker but far better than nothing
Your five step checklist

1. Make every password at least 16 characters, ideally a passphrase. 2. Never reuse a password across accounts. 3. Keep personal details like birthdays and pet names out of them. 4. Use a password manager so all of that is realistic. 5. Turn on two factor authentication anywhere it is offered, starting with your email.

Start with your email account. It is the master key to everything else, because almost every other site will happily reset a password by sending a link to your inbox. Secure that one first, then work your way down.

Go Deeper Into Cybersecurity

This tutorial scratches the surface. CodeHS Cybersecurity courses take students from passwords and phishing all the way through networking, encryption, and ethical hacking, with hands-on labs and everything a teacher needs to run the class.