Join our Newsletter — 33% off our NHI Course
Home› Guides› Password Cracking for Beginners: How Stolen Passwords Are…
Guide Offensive Security & Testing

Password Cracking for Beginners: How Stolen Passwords Are Guessed and Why Long Ones Hold Out

PDF for newsletter subscribers · free to read online

← All guides
By NHI Mgmt Group, under the editorial direction of Lalit Choda Updated 28 November 2026 11 min read
On this page

Password cracking means guessing passwords from a stolen file of scrambled passwords, away from the website.

This guide is for anyone who has heard that a website was hacked and wondered what happens to the passwords. You do not need to be technical to be affected: the length of your password, and how the website stores it, decide how long it is likely to hold out.

In short

  • Good websites do not keep your actual password. They keep a scrambled version called a hash.
  • If that file is stolen, attackers can guess on their own computers, where no lockout stops them.
  • Common or reused passwords tend to be guessed first. Long, random ones take far longer.
  • Use a long, unique password for each account, a password manager and a second sign-in step.

What you will learn

  • Explain what password cracking is in one sentence.
  • Explain why a lockout on the website does not help once a file is stolen.
  • Check whether your own passwords are long and unique enough.
  • Ask a website or supplier how they store passwords.
Scrambled password (hash)
a fixed jumble of characters made from a password, designed so it cannot be turned back.
Guessing at home (offline cracking)
trying guesses against a stolen file on the attacker's own computer, not on the website.
Random extra (salt)
a random value added to each password before it is scrambled, so two equal passwords look different.

What is password cracking?

Think of a fingerprint. You cannot rebuild a finger from a print. But if you have the print, you can check finger after finger until one matches.

Websites treat passwords in a similar way. When you sign up, the site turns your password into a hash, a fixed jumble of characters, and stores that instead. When you sign in, it scrambles what you type and compares the two. This one-way scrambling is called password hashing.[2]

Password cracking starts when someone steals that file of hashes. They cannot turn a hash back into a password. Instead they guess: they scramble a likely password the same way, then look for a match. A match tells them the password.[2]

Where the comparison stops working: checking fingers is slow and needs people. Computers can try huge numbers of guesses, and the speed depends on how the website chose to scramble the passwords.

Why does it matter?

A cracked password can open more than one door. If you used it elsewhere, attackers can try it on your email, bank or shopping accounts. That reuse is how one leak spreads, through a follow-on attack called credential stuffing.

If you use the same password in several places

What could happen: one website's leak lets strangers into your other accounts too.

Check this: make sure your email and bank passwords are not used anywhere else.

Next: Password Managers for Beginners

If you run a website with customer accounts

What could happen: your customer file is stolen, and weak storage lets many passwords be guessed quickly.

Check this: ask your developer or platform which password hashing method they use.

Next: Encoding, Encryption and Hashing for Beginners

If you are studying for a security career

What could happen: you learn cracking tools before the reason they work, and miss the defence.

Check this: learn why slow hashing, salt and length matter first. Only test systems you have written permission to test.

Next: Penetration Testing for Beginners

What does it look like?

Here is a made-up extract from a stolen password file, to show what an attacker sees. No real passwords appear here.

Example only. All values are made up.

# users table, EXAMPLE shop, stolen copy
[email protected]    FAKEHASH-0000-AAAA          (1)
[email protected]    FAKEHASH-0000-AAAA          (2)
[email protected]     slow+salt FAKE-9f00-EXAMPLE  (3)
  1. In a real file, this line would hold a scrambled password made with a fast method and no salt.
  2. The same jumble as the line above, so these two people chose the same password. One guess cracks both.
  3. In a real file, this line would hold a password scrambled with a slow method and its own salt. Each guess costs far more time.

Why this is risky: fast methods let attackers try a very large number of guesses quickly. With no salt, matching jumbles show who shares a password, and ready-made lookup lists can be used.[2]

The safer way: the website uses a slow method built for passwords, with a unique salt for each one. Experts recommend methods such as Argon2id for this.[2] US government guidance says passwords should be stored salted and hashed, in a form that resists offline guessing.[1]

How does it work?

Here is the usual path from a stolen file to a guessed password.

  1. The theft. An attacker gets a copy of a website's password file, for example from a stolen backup or a hacked database.[2]
  2. The guess list. They start with passwords people often choose, and passwords leaked in earlier breaches.[2]
  3. Scramble and compare. Each guess is scrambled in the same way as the website did. If the result matches a stored jumble, that password is found.
  4. No lockout. This all happens on the attacker's own computers. The website's limit on wrong attempts does not apply, because the website is not involved.
  5. Use or sell. Found passwords may be tried on other websites, or sold to other criminals.
Flow diagram titled How a stolen password file is guessed, with four boxes left to right. Box 1 Stolen file: scrambled passwords copied from a website. Box 2 Guess list: common and previously leaked passwords. Box 3 Scramble each guess: the same way the website does. Box 4 Compare: a match reveals the password. A note under the boxes says this happens on the attacker's own computers, so the website's lockout does not apply. A green bar says slow hashing with a unique salt makes every guess cost more, and long unique passwords sit far down the list.
Figure 1. From stolen hash to guessed password: the attacker guesses, scrambles and compares, away from the website.

Length matters because of simple maths. Picture a password made of random lowercase letters. Each extra letter multiplies the number of possible passwords by the size of the alphabet. So a 15-letter random password has billions of times more possibilities than an 8-letter one, and each one may need a guess.

That maths only helps if the password is truly hard to predict. A long password made of a famous phrase, a pet's name or a known leaked password may be near the top of a guess list. Swapping letters for numbers adds little, because attackers know those tricks.[3]

Comparison diagram titled Why long passwords hold out. Left box: 8 random lowercase letters, about 209 billion possible passwords. Right box: 15 random lowercase letters, about 8 billion times more than 8 letters (7 letters more). A note says each extra random letter multiplies the possibilities by 26, so 7 more letters is 26 to the power 7, about 8 billion. A green bar says length only helps if the password is not predictable: avoid common, reused and leaked passwords.
Figure 2. Each extra random character multiplies the work. Predictable passwords lose that benefit.

This is why the advice fits together. US government guidance asks for passwords of at least 15 characters when a password is the only sign-in step. It also asks websites to block common and leaked passwords, and to stop forcing regular changes.[1] The UK's National Cyber Security Centre suggests three random words as a way to make long passwords you can remember.[3]

A worked example

Cyrus Bergmann runs a fictional online bike parts shop in Leeds. Nils Rosen, a freelance IT contractor, looks after the website.

One Monday, Nils calls. "Someone got into the old website server last week. They copied the customer table, including the stored passwords."

Cyrus asks the obvious question. "Are the passwords readable?" Nils explains that they were hashed, not stored as plain text. But the old site used a fast method with no salt. Common passwords in the file could be guessed in a short time.

Cyrus thinks of the fingerprint. The thief has the prints, and can now try finger after finger at home, with no one watching.

So they act in order. First, Nils sets every customer account to need a new password at next sign-in. Second, Cyrus emails customers, explains what happened, and asks anyone who used the same password elsewhere to change it there too.

Third, Nils moves the site to a slow, salted hashing method that is built for passwords. Fourth, he turns on a check that blocks passwords already known from earlier leaks.[4] He also offers customers a second sign-in step.

Cyrus also asks for advice on whether he needs to report the breach, because rules on reporting can apply when personal data is stolen.

A week later, the site's records show no sign-ins from unknown places to the accounts checked so far. Cyrus now asks every new supplier one question first: "How do you store passwords?"

Myths and mistakes

What people thinkWhat is true
The website locks accounts after a few wrong tries, so guessing is not a risk.Lockouts help against guessing on the website. Once the password file is stolen, guessing happens elsewhere, with no lockout.
A hashed password cannot be found out.Hashes cannot be turned back, but they can be guessed. How long that takes depends on the method and the password.[2]
Swapping o for 0 makes a password strong.Attackers know these swaps. Length and unpredictability matter more.[3]
Changing my password every month keeps me safe.US guidance says services should not force regular changes. Change it when there is a sign it was exposed.[1]
A long password is always strong.Not if it is a famous phrase or a leaked password. Long and unpredictable is the goal.

What can I do this week?

  • Change any password you use on more than one important account, starting with email.
  • Try a password manager to create and remember long, unique passwords.
  • Turn on a second sign-in step for email, banking and shopping accounts.
  • If you run a website, ask how passwords are stored and whether leaked passwords are blocked.

Checklist

  • My email password is long and not used anywhere else.
  • Each important account has its own password.
  • A password manager or another safe method keeps track of them.
  • A second sign-in step is on for my most important accounts.
  • Our website stores passwords with a slow method built for passwords and a unique salt.
  • Our website blocks common and previously leaked passwords.
  • We know what to do if our password file is ever stolen.

Common questions

Is password cracking illegal?

Without permission, it usually is. Security testers crack password files with the written approval of the organisation that owns them, to find weak passwords and fix them. Doing it without permission can break computer misuse laws in many countries. Always get authorisation in writing first.

How long would it take to crack my password?

Nobody can give one number. It depends on how the website scrambled it, how much computing power the attacker has, and how predictable your password is. A common or leaked password may be found quickly. A long, random, unique one is likely to take far longer.

Does a second sign-in step stop cracking?

Not the cracking itself, but it limits the damage. A cracked password alone is often not enough to sign in when a second step, such as a code or passkey, is turned on. It is one of the most useful protections you can add.

How can I tell if my password was in a leak?

Use a breach-checking service. One example, Pwned Passwords, checks a password without receiving it in full. The password is scrambled on your device, and only the first few characters of the result are sent.[4] Many password managers include a similar check.

Why don't websites just encrypt passwords?

Because encryption can be undone with the right key. If that key is stolen too, every password is readable. Hashing is one-way, so the website never needs to read your password back. It only checks that what you type gives the same result.[2]

Where next?

Ready for the detail? Read the practitioner guide: Hashcat and Password Cracking for Defenders Guide. It goes further into which business password hashes are most at risk, how to run an authorised password audit, and how to turn the results into control changes.

Also useful:

Related NHI Mgmt Group resources: Password Hashing and Key Derivation · Breached password checks · Encoding, Encryption and Hashing

Key terms

Password cracking
Finding passwords by guessing and checking them against stolen scrambled copies.
Hash
A fixed-length jumble made from data by a one-way process.
Password hashing
Storing a password as a scrambled, one-way value instead of the password itself.
Salt
A random value added to each password before hashing, so equal passwords give different results.
Offline password cracking
Guessing against a stolen password file on the attacker's own computers, away from the website.
Dictionary attack
Guessing passwords from a list of likely words and known leaked passwords.
Credential stuffing
Trying stolen username and password pairs on many other websites.

Sources and further reading

  1. NIST Special Publication 800-63B-4, Digital Identity Guidelines: Authentication and Authenticator Management. National Institute of Standards and Technology. https://pages.nist.gov/800-63-4/sp800-63b.html, accessed 28 Nov 2026.
  2. Password Storage Cheat Sheet. OWASP Cheat Sheet Series, OWASP Foundation. https://cheatsheetseries.owasp.org/cheatsheets/Password_Storage_Cheat_Sheet.html, accessed 28 Nov 2026.
  3. Three random words. Top tips for staying secure online, National Cyber Security Centre (UK). https://www.ncsc.gov.uk/collection/top-tips-for-staying-secure-online/three-random-words, accessed 28 Nov 2026.
  4. Pwned Passwords. Have I Been Pwned. https://haveibeenpwned.com/Passwords, accessed 28 Nov 2026.

PDF for subscribers

Take this guide with you

Every section, table and checklist in one PDF, with links to the sources and related guides. Subscribe to our weekly NHI & AI Identity Journal and we’ll email you a download link.

Free weekly newsletter

Subscribe to the NHI & AI Identity Journal

The latest on NHI and Agentic AI security – articles, research, breaches, news and events every week.

Bonus 33% off our NHI Course when you subscribe.

PDF Downloads for Newsletter Subscribers

Get the guide

Enter your details and we’ll email you a download link.

The full guide is free to read online. The PDF is a thank you for subscribing.

Fill in all fields marked * and tick both boxes to continue.