Hearing that an account got "hacked" makes people picture elite coders running clever zero-day exploits, yet with passwords the truth is much more ordinary and much easier to stop.

Weak passwords, reused passwords and poorly secured password databases cause most compromised accounts and not brilliant technical exploits. How passwords fail gets understood and then choices that really count can be made once the mechanics of password failure are grasped.

Every year, new breach disclosures reveal the actual passwords people choose. The results are consistently disheartening. According to NordPass's 2024 annual analysis of most common passwords, "123456" and "password" remain near the top of the list, with millions of users each.[4]

This is not a failure of intelligence - it is a failure of systems that have, for decades, asked users to manage dozens of unique secrets without providing adequate tools to do so. The problem is structural as much as it is behavioral.

"The average person manages somewhere between 70 and 100 passwords. Expecting them all to be unique, long, and memorable is not a security policy - it is security theater."

Paraphrasing a common argument from security researchers including Troy Hunt

The technical means attackers use to crack passwords gets examined here. Proper password storage is explained along with what happens when it goes wrong and the "length versus complexity" question gets answered with actual math. Password managers as the most practical defense for ordinary users is made out as well.


Key Definitions

Brute force attack. This password cracking method goes through every possible combination of characters one by one until the right password turns up. It takes a lot of computation but it is guaranteed to succeed in the end.

Dictionary attack. This is a cracking method that tries passwords from a precompiled list of words, common passwords and known breach data instead of all possible combinations. It is much faster than pure brute force for most passwords that humans choose.

Credential stuffing. This is the automated testing of username/password pairs from one breach against many other services and it takes advantage of password reuse across accounts.

Hashing: A one-way mathematical transformation that converts a password into a fixed-length string (the hash). Properly implemented, you cannot reverse a hash to obtain the original password - you can only test whether a given input produces the same hash.

Salting. Each password gets a unique random string added to it before hashing. That prevents the use of precomputed rainbow tables and makes sure that the same password produces different hashes in the database.

Rainbow table: A precomputed lookup table that maps known password hashes back to their original plaintext passwords. Defeated by salting.

Password entropy: A measure of how unpredictable a password is, measured in bits. Each additional bit doubles the number of possible passwords. A password with 60 bits of entropy requires 2^60 guesses to exhaustively crack.

Passkey. This is a cryptographic credential kept on a device that takes the place of both passwords and MFA. It uses public-key cryptography to authenticate without sending out any secret and it cannot be phished or credential-stuffed.


The Scale of the Problem

To grasp the scale of breach data available, it helps first to see how big that pool is. Over 12 billion compromised account records from known public breaches have been catalogued by Troy Hunt's Have I Been Pwned (HIBP) project.[1]

This database includes passwords from thousands of breach events, many subsequently cracked and compiled into wordlists.

In a 2024 study, 74% of users exposed in two or more breaches in the past year were found to reuse passwords. This means that one breach can lead to dozens of account compromises at other services.[12]

Stolen credentials rank among the most common ways initial access is gained in confirmed data breaches and the Verizon DBIR finds this time after time. That means password weakness is not just an inconvenience for users and it is the single biggest structural vulnerability in digital security.[13]


Cracking Methods Compared

MethodHow It WorksEffective AgainstDefeated By
Brute forceTests all combinations systematicallyShort passwordsLong passwords (14+ chars)
Dictionary attackTests wordlists + transformation rulesCommon words and predictable patternsTruly random passwords
Credential stuffingTests breach credentials at other servicesReused passwordsUnique passwords per service
Rainbow tableLooks up precomputed hash-to-password mappingsUnsalted hashesSalting
Phishing / social engineeringTricks user into revealing passwordAny password strengthMFA, user awareness
Hybrid attackCombines dictionary words with brute force permutationsCommon words with predictable additionsLong random passwords or passphrases
Rule-based attackApplies transformation rules to known patternsPredictable substitutions (P@ssw0rd)True randomness

How Password Cracking Works

The Starting Point: Breach Databases

Most large-scale password cracking does not start with an individual trying to guess your password - it starts with a stolen database.

When a site or service is breached, attackers often obtain a copy of the user database, which contains usernames (or email addresses) and stored password representations. How much damage they can do with that database depends almost entirely on how the passwords were stored.

Poorly secured databases store passwords in plaintext - the actual password characters, readable directly. This is catastrophically bad, and organizations that do it are negligent. Less bad but still dangerous is hashing without salting.

When properly secured, databases use modern, slow hashing algorithms such as bcrypt, scrypt and Argon2 along with unique salts for each password.

The difference between these tiers is the difference between attackers having all your users' passwords instantly versus spending years to crack only some of them.

Exposure through the public breach ecosystem brings this home. In 2009, RockYou was breached and 32 million plaintext passwords were exposed and went on to be distributed online. Password crackers are still using the "RockYou.txt" wordlist that came from this breach.

More than 15 years later, real-world passwords from 2009 are still being tested against current systems - because millions of people used, and still use, those same passwords.

Brute Force Attacks

The simplest conceptual approach to cracking a password is to try every possible combination: "a", then "b", then "c", through "z", then "aa", "ab", and so on through every combination at every length.

Given unlimited time, this guarantees finding any password. The practical constraint is time.

A modern GPU-based cracking rig can test billions of MD5 hashes per second (MD5 being a fast but entirely inappropriate algorithm for password storage, still used by legacy systems).

Publicly posted Hashcat benchmarks from 2022 to 2023 show that a consumer-grade NVIDIA RTX 4090 graphics card gets about 164 billion MD5 hashes per second using tools like Hashcat. At that speed

  • An 8-character lowercase password: exhausted in under a minute
  • An 8-character mixed-case + digits + symbols password: exhausted in hours to days
  • A 12-character mixed password: exhausted in weeks to months (depending on algorithm)
  • A 16-character random password: effectively infeasible within a practical timeframe

The bottom line is simple: short passwords collapse fast under brute force no matter how many symbols you mix in, so length is what really protects you against brute force.

Pooling the power of dozens of GPUs across cloud-based cracking clusters shortens those time frames even more. Cracking capacity by the hour can be rented from services running on cloud infrastructure. Password-cracking economics favor the attacker. Every year, hardware gets cheaper yet people continue to choose passwords that remain about the same.

Dictionary Attacks

Because most passwords are not random, pure brute force is computationally wasteful. Words, names, dates and patterns that people find meaningful get chosen by them. Dictionary attacks take advantage of this by testing the most likely candidates first.

Modern dictionary attack tools like Hashcat and John the Ripper draw wordlists from many sources. These include common English and other-language words, names, pop culture references, sports teams, keyboard patterns such as "qwerty" and "1q2w3e4r" and most crucially, actual passwords that appeared in earlier breaches.

Of all sources, these breach password lists make the best dictionary attack source because they show what real people actually select.

Cracking tools go beyond raw wordlists by applying transformation rules such as capitalizing the first letter, adding "1" to the end, substituting "@" for "a", substituting "3" for "e" and adding the current year.

This means that "P@ssw0rd!2024" is not safe. It is a predictable transformation of "Password" that every serious cracking tool handles automatically.

Research by Weir et al. (2009) at Florida State University formalized this as probabilistic context-free grammar (PCFG) cracking: treating passwords as composed of recognizable segments (base words, digits, symbols) with predictable positions.[11]

A PCFG cracker trained on one breach corpus can crack passwords from a different breach more effectively than a simple dictionary. This research demonstrated that human password-creation patterns are highly predictable even when the creator believes they are being clever.[15]

Credential Stuffing

Credential stuffing. The attack is mechanically simple but needs scale. Attackers obtain a list of email/password pairs from a known breach. They then use automated tools to test those pairs against other services.

If you used the same password on a breached forum as you use on your email account, your email is now at risk even though your email provider was never breached.

How well credential stuffing works depends directly on how often passwords get reused. Research on breach data shows that 44 to 65 percent of users reuse passwords across multiple accounts. Attackers who have billions of credentials to test turn those reuse rates into millions of successful logins.

Akamai's State of the Internet reporting found that credential stuffing was a large share of login attempts across the financial services sector - meaning a substantial portion of attempts to log into a bank or financial application was a credential stuffing probe.[5]

The automation is efficient enough that campaigns can test millions of credentials within hours of a new breach becoming public.

In 2022, an incident at Okta, itself a major identity security provider, showed how credential stuffing compounds. A credential stuffing attack on a support vendor gave limited access that went on to enable more intrusion.

Multiple Okta customers were affected by the incident and it showed that the credential stuffing problem is not limited to services facing consumers.

Rainbow Tables

A rainbow table is a precomputed database that maps password hashes back to their source passwords. Because hashing is deterministic (the same input always produces the same hash), if you have computed the hash for "password123" once, you can store it and look it up instantly rather than recomputing it later.

Unsalted password databases that use common hashing algorithms can be cracked by rainbow tables that instantly break billions of hashes. Public sources offer downloads of tables that cover all MD5 hashes for passwords up to 8 characters in common character sets and these fit on commodity storage hardware.

Defeats rainbow tables entirely is salting. Each password gets added to it a unique random string before hashing and that makes the hash of "password123" different for every user. No precomputed table can take salted hashes and map them back to passwords.

Each password in the database requires the attacker to compute hashes individually and that makes large-scale cracking computationally impractical within practical timeframes for properly slow hashing algorithms.


How Password Storage Should Work

The Role of Hashing Algorithms

Hash functions are not all created equal for storing passwords. MD5 and SHA-1 were made for quick data integrity checks and speed is a feature for that job but a disaster for passwords. One modern GPU can produce billions of MD5 hashes each second and that makes brute force and dictionary attacks shockingly fast.

Password-specific hashing algorithms are designed to be deliberately slow and computationally expensive. The current NIST-recommended standards:

AlgorithmYearCost FactorMemory-HardStatus
MD51992NoneNoNever use for passwords
SHA-11995NoneNoNever use for passwords
bcrypt1999Configurable (work factor)NoAcceptable; NIST approved
scrypt2009ConfigurableYesPreferred; NIST approved
Argon2 (id)2015ConfigurableYesCurrent best practice; NIST recommended

bcrypt, introduced by Provos and Mazieres (1999), uses a cost factor that can be increased as hardware improves - making it always take a meaningful amount of time per hash regardless of available hardware.[6]

On modern hardware, a bcrypt hash worked out in 2024 with a work factor of 12 takes about 250ms to compute. That is slow enough to make billion-per-second cracking impractical and quick enough that legitimate authentication does not get noticeably slowed down.

Argon2 was the winner of the Password Hashing Competition (2015) and represents the current best practice. It has three variants (Argon2d, Argon2i, Argon2id), with Argon2id recommended by NIST SP 800-63B (2024 revision) for most applications.

The memory-hardness parameter needs large RAM allocations and those specifically defeat GPU- and ASIC-based cracking rigs that have huge parallelism for computation but limited memory per thread.

In 2012, LinkedIn's breach exposed 6.5 million SHA-1 hashed passwords without salting and within days, nearly all of them had been cracked. In 2016 when the full extent came out (117 million accounts), those accounts were cracked almost entirely within weeks because of the weak hashing.

In 2016, a chain from LinkedIn's failure to store passwords securely went on to help phishing attacks on Hillary Clinton's campaign chairman, John Podesta. This chain took the form of a major political security incident.[3]

What Organizations Must Do

Any developer or architect choosing a password storage mechanism in 2025 should adhere to NIST SP 800-63B's guidance:[2]

  • Use Argon2id as the first choice, with bcrypt as an acceptable alternative
  • Configure cost parameters such that password hashing takes no less than 100ms on current production hardware
  • Use unique per-user salts of at least 32 bytes, generated by a cryptographically secure random number generator
  • Never use MD5, SHA-1, SHA-256, or any non-password-specific hash for passwords
  • Never store passwords in plaintext or with reversible encryption

Importantly, NIST also recommends that organizations check user-submitted passwords against known-compromised password lists.

The Have I Been Pwned API provides a k-anonymity interface that allows checking passwords against the breach database without transmitting the actual password - enabling organizations to reject compromised passwords at account creation and change.


Why Length Beats Complexity

The intuition that adding special characters makes passwords stronger is not wrong - it increases the search space for brute force. But the intuition underestimates how much more powerfully length scales.

Look at the math: an 8-character password pulled from all 95 printable characters (uppercase, lowercase, numbers and symbols) gives roughly 6.6 quadrillion possible combinations.

A password drawn from only 26 lowercase characters at 20 characters produces about 20 thousand trillion trillion combinations - roughly 3 billion times larger a search space. Length wins decisively.

The mathematics of password entropy make this precise. Password entropy is calculated as:

Entropy (bits) = log2(character set size) * password length

Password TypeCharacter SetLengthEntropy (bits)Time to Crack (RTX 4090, MD5)
8-char, mixed case + symbols95 chars852.6 bitsHours
12-char, mixed case + symbols95 chars1278.8 bitsDecades
4-word passphrase (random)7,776 words (diceware)~20 chars51.7 bitsComparable to 8-char complex
5-word diceware passphrase7,776 words~25 chars64.6 bitsThousands of years
6-word diceware passphrase7,776 words~30 chars77.5 bitsBillions of years

NIST's revised guidelines in SP 800-63B (2017, revised 2024) got rid of requirements for special characters and regular password expiration explicitly. That is why research showed people ended up making predictable changes such as going from "Password1" to "Password2".

NIST instead says to allow long passwords of up to at least 64 characters and to check new passwords against breach databases instead of demanding complexity patterns.

The most practical implementation of long passwords for most people is passphrases: a sequence of random words ("correct horse battery staple" in Randall Munroe's famous XKCD illustration).[7]

A four-word passphrase from a common diceware list of 7,776 words provides about 51.7 bits of entropy. That is comparable to a well-chosen 8-character complex password but far more memorable. A six-word passphrase provides 77.5 bits and is practically uncrackable.

The critical word is random. "My dog loves cheese" is not a random four-word passphrase - it reflects predictable human patterns that reduce entropy dramatically. True passphrases use random word selection, such as via dice and a diceware word list, or a password manager's built-in passphrase generator.


The Case for Password Managers

The Fundamental Tension

The security guidance is clear. Use unique, long, random passwords for every account. The practical reality is also clear. The average person manages 70 to 100 accounts and no human being can memorize 70 unique 20-character random strings.

What security demands and what human memory can reasonably give results in a gap that is the root cause of password reuse.

Password managers resolve this tension. They generate, store and fill strong unique passwords for every account. Users only need to remember a single master password. The security model relies on the master password being strong (which is achievable for one memorable password) and the password manager's encryption being sound.

In its 2007 landmark study at Microsoft Research, Florencio and Herley found that the typical web user had about 6.5 distinct passwords, each shared across about 3.9 sites and entered about 8 passwords daily.[10]

How Password Manager Security Works

Reputable password managers encrypt the user's vault on the device before transmitting anything to their servers, using the master password as the encryption key (typically via PBKDF2, bcrypt, or Argon2 to derive the encryption key from the master password).

The server receives and stores only encrypted data - the password manager company cannot see your passwords even if they wanted to, and a breach of their servers exposes only encrypted data.

This "zero-knowledge" architecture is the critical security property. It means that the password manager's server being compromised does not directly expose user passwords. Only encrypted blobs that require the master password to decrypt are exposed.

In 2022, attackers broke into a LastPass developer machine and walked away with copies of encrypted customer password vaults.[8] It was a major black eye for the company and security researchers sharply criticized how slowly and opaquely LastPass disclosed the details.

Encrypted vaults with strong master passwords still stay protected. To get in, the attacker has to get past the master password. The event showed how important it is to choose a strong master password and showed too that even password managers can be breached at the infrastructure level.

Competing services like Bitwarden (open source and audited), 1Password, Dashlane and KeePassXC (local storage only) have strong security records and have not suffered comparable incidents.

Comparing Password Manager Options

ManagerOpen SourceAudit StatusStorageFree TierNotable Features
BitwardenYes (GitHub)Cure53 audit 2022Cloud or self-hostYes (full-featured)Most transparent; self-host option
1PasswordNoThird-party auditsCloud onlyNo (paid)Strong UX; Travel Mode feature
KeePassXCYesCommunity-reviewedLocal onlyYesMaximum control; no cloud dependency
DashlaneNoThird-party auditsCloud onlyLimitedVPN bundled; breach monitoring
LastPassNoThird-party auditsCloud onlyLimited (post-2022 restrictions)Market share declining post-breach

Bitwarden and Open Source Verification

Bitwarden holds a unique place in the password manager world as it is fully open source and that means anyone can independently inspect its code.

It has undergone independent security audits (most recently by Cure53 in 2022, which found no critical issues) and supports self-hosting for users who want complete control over their data.[9]

When what is wanted are verified security properties instead of marketing claims and for organizations as well as security-conscious individuals, open source options give a real advantage.

Bitwarden's encryption setup uses AES-256 CBC encryption along with PBKDF2-SHA256 or Argon2id for key derivation. Users can configure the number of PBKDF2 iterations and Bitwarden recommends at least 600,000 iterations (as of 2023 and in line with OWASP guidance).


Passkeys: Beyond Passwords

The long-term future of authentication may not involve passwords at all. Passkeys (a standard developed by the FIDO Alliance and W3C, supported by Apple, Google, and Microsoft) replace passwords entirely with cryptographic key pairs.[14]

When you create a passkey-protected account:

  1. Your device generates a public/private key pair
  2. The public key is sent to and stored by the service
  3. The private key never leaves your device

When you authenticate:

  1. The service sends a challenge
  2. Your device signs the challenge with the private key (after biometric verification)
  3. The service verifies the signature using the stored public key

Because no password is ever transmitted, there is nothing to phish, nothing to stuff, and nothing to crack. A database breach exposes only public keys, which are mathematically useless without the corresponding private keys.

Passkeys also bind to the legitimate domain cryptographically - a passkey for "bank.com" will not authenticate to "b4nk.com."

Major services including Google, Apple, GitHub, PayPal, and Amazon support passkeys as of 2024. NIST's updated SP 800-63B (2024 revision) includes passkeys as a first-class authentication option.

Though the change takes time, passkeys bring the biggest structural upgrade to consumer authentication security in decades. They address the root causes of password-based compromise instead of just reducing symptoms.


Practical Takeaways

Most users can make the biggest impact with these changes. Use a password manager to create and store unique passwords for every account. Turn on multi-factor authentication wherever the option exists, prioritizing email, banking and accounts used for other logins. Use a strong, memorable passphrase as the master password for the password manager itself.

Passkeys should be enabled wherever they are available. New accounts should have passwords generated by your password manager instead of being typed in yourself. Use your password manager's breach-monitoring or reused-password feature to check the existing passwords and most modern managers flag both.

For engineering teams storing user passwords in 2025, there is zero excuse for running MD5 or SHA-1. Always hash with bcrypt, scrypt or Argon2id tuned to a proper work factor and pair every password with its own random salt.

Check whether the organization's password policy aligns with current NIST guidance - particularly eliminating forced expiration without cause and removing arbitrary complexity requirements that push users toward predictable patterns.

Implement the HIBP API to reject known-compromised passwords at account creation.


Sources & Further Reading

  1. Hunt, T. (2024). Have I Been Pwned: Pwned Passwords..
  2. NIST. (2024). Special Publication 800-63B: Digital Identity Guidelines - Authentication and Lifecycle Management (Revision 4 draft). National Institute of Standards and Technology.
  3. Goodin, D. (2016). "How the explosive 2012 LinkedIn breach directly led to Hillary Clinton email hack." Ars Technica, May 18.
  4. NordPass. (2024). Top 200 Most Common Passwords 2024. NordPass research.
  5. Akamai Technologies. (2023). State of the Internet: API Security. Akamai.
  6. Provos, N., & Mazieres, D. (1999). "A future-adaptable password scheme." USENIX Annual Technical Conference Proceedings.
  7. Munroe, R. (2011). "Password Strength." xkcd, comic #936..
  8. Krebs, B. (2022). "LastPass: Hackers stole customer vault data after recent breach." KrebsOnSecurity, December 23.
  9. Cure53. (2022). Bitwarden Security Audit Report. Cure53 GmbH.
  10. Florencio, D., & Herley, C. (2007). "A large-scale study of web password habits." Proceedings of the 16th International World Wide Web Conference.
  11. Weir, M., Aggarwal, S., de Medeiros, B., & Glodek, B. (2009). "Password cracking using probabilistic context-free grammars." IEEE Symposium on Security and Privacy. View source
  12. SpyCloud. (2024). 2024 SpyCloud Annual Identity Exposure Report. SpyCloud Inc.
  13. CISA. (2023). Weak Security Controls and Practices Routinely Exploited for Initial Access. Cybersecurity and Infrastructure Security Agency.
  14. FIDO Alliance. (2023). Passkeys: A New Paradigm for Passwordless Authentication. FIDO Alliance.
  15. Ur, B., et al. (2015). "Measuring real-world accuracies and biases in modeling password guessability." USENIX Security Symposium.