How password hashes are cracked, and what makes stored passwords resist it

Offline cracking turns a stolen hash database into passwords using dictionaries, rules, and masks. Why fast hashes like MD5 and NTLM fall quickly, why bcrypt, scrypt, and Argon2id slow it down, and how to audit your own systems.

Lesson 1 of 10 · 13 min read · practice only with authorization

Diagram

Same password, different hash choices

Follow the path. One example at a time.

Step 1 of 4

Leak

An attacker obtains a table of password hashes.

Illustration: Leak
# Leak
# An attacker obtains a table of password hashes.
What changes the outcome
Example

MD5, SHA-1, NTLM

Salt

Often none

GPU guesses

Billions per second

The example on the open step is one illustration, or the fix you can paste into an application you own.

What this page is made of

3 pieces. Each one says what fails, who is affected, what you would notice, and what you change.

  1. Algorithm choice

    What fails
    General-purpose hashes are designed to be fast, which helps attackers.
    Who is affected
    Every user if the database leaks.
    What you would notice
    MD5, SHA-1, or unsalted SHA-256 in the users table.
    What you change
    Migrate to Argon2id, scrypt, or bcrypt, rehashing at next login.
  2. Salts

    What fails
    A unique salt per password stops precomputed tables and identical-hash grouping.
    Who is affected
    Users who share common passwords.
    What you would notice
    Identical hashes for different users.
    What you change
    Use a password-hashing library that salts automatically.
  3. Human patterns

    What fails
    Rules model how people build passwords: words, years, symbols at the end.
    Who is affected
    Users with patterned passwords.
    What you would notice
    Passwords like Season+Year+!.
    What you change
    Block breached and common passwords at creation.

Auditing your own password store

With approval from the system owner, security teams test a copy of their own hash store against breach wordlists to find weak passwords and force changes. Do it on an isolated machine, delete cracked output afterward, and report only counts and affected accounts to owners.

$ hashcat -m 1000 -a 0 ntlm-copy.txt rockyou.txt -r rules/best64.rule --potfile-path audit.pot
Recovered........: 412/5130 (8.03%) Digests
# report: 412 accounts to reset; then shred audit.pot and the copy

Check yourself

Recognition and the fix. Nothing here is a procedure.

1 / 3

Why does bcrypt slow down cracking compared with MD5?

Go deeper

Specific techniques, exercises, and glossary cards for this topic.

  1. 01Slow password hashesA password database will be copied eventually. Includes the diagram and a defensive fix.
  2. 02Password storage, and what cracking tools proveJohn the Ripper and Hashcat test whether a stored secret is guessable. Includes the diagram and a defensive fix.
  3. 03Password policy that follows NIST SP 800-63B: length, screening, and no forced rotationModern guidance favors long passphrases, screening against breached passwords, no arbitrary complexity rules or scheduled rotation, and password managers plus MFA. Includes the diagram and a defensive fix.

Exercises

  1. 01Password policy and hash cost explorerChange length, character sets, and hash algorithm, and watch the offline guessing time move. Then test which policy-compliant passwords fall first anyway.
  2. 02Password hashing and salting visualizerSee what a leaked user table reveals with no salt, one site-wide salt, and per-account salts, using real SHA-256 hashes computed in your browser.