What password cracking actually is
Password cracking is the process of recovering a password by testing many guesses against a system until one works. It is not magic or hacking into a server — it is usually an attacker running software on their own computer that tries thousands or millions of password combinations per second until it finds a match.
The attacker does not need to break into anything first. They either have a password hash (a scrambled version of the real password) from a data breach, or they are trying to log into a system directly by guessing. The speed and success of cracking depends entirely on how the password was stored, how long it is, and what characters it contains.
Key Takeaways
- Password cracking software tests thousands of guesses per second by comparing them against a stolen hash or a live login system.
- Weak passwords — short, common words, or predictable patterns — can be cracked in minutes or hours even with basic tools.
- Strong passwords with length, mixed character types, and no dictionary words can take years or longer to crack, making them impractical targets.
- The way a password is stored matters as much as the password itself: salted hashes and modern algorithms like bcrypt slow attackers down dramatically.
- Two-factor authentication stops a cracked password from being useful, because the attacker still cannot log in without a second factor you control.
The two main cracking methods: dictionary and brute force
Dictionary attacks test common passwords first — "password", "123456", "qwerty", "admin" — and variations like adding numbers or symbols to the end. These work fast because most people choose weak, predictable passwords. A tool like Hashcat or John the Ripper can test millions of dictionary words and their variations in minutes against a stolen hash.
Brute force attacks test every possible combination of characters in order: "a", "b", "c", then "aa", "ab", "ac", and so on. This is slower but will eventually find any password if given enough time. A 6-character password using only lowercase letters can be cracked in hours. An 8-character password with uppercase, lowercase, numbers, and symbols takes much longer — often years on a single computer.
Attackers usually start with dictionary attacks because they work on weak passwords when ready. They only move to brute force if the password is strong enough to resist dictionary testing, and even then they often give up because the time cost becomes unrealistic.
Why password length and complexity matter more than you think
A 6-character password has roughly 2 trillion possible combinations if it uses uppercase, lowercase, numbers, and symbols. That sounds like a lot, but modern cracking software can test billions of combinations per second, so 2 trillion takes only minutes.
A 12-character password has roughly 475 quadrillion combinations. At a billion guesses per second, that takes about 15 million seconds — roughly 173 days. A 16-character password takes roughly 45,000 years at the same speed. Length is exponential: each character you add multiplies the time required, not just adds to it.
This is why security experts recommend 12 to 16 characters as a practical target. It makes brute force so slow that attackers will not bother. Dictionary attacks still work on weak 12-character passwords like "password123456", so the characters also need to be mixed and unpredictable.
How stolen password hashes are cracked differently than live login attempts
When an attacker has a stolen hash from a data breach, they can test guesses offline on their own computer as fast as their hardware allows. There is no server to slow them down, no rate limiting, no lockout after failed attempts. This is why data breaches are so dangerous — the attacker has unlimited time and speed to work.
When an attacker is trying to log into a live system — your email, your bank, your home security camera — the server usually limits how many guesses they can make. After five or ten failed attempts, the account locks, the IP address gets blocked, or the attacker has to wait minutes before trying again. This makes live cracking much slower and usually impractical for strong passwords.
The difference matters for your own security: a weak password on a live system is safer than the same weak password in a stolen hash, but not by much. The real protection is making the password strong enough that cracking it takes longer than the attacker is willing to wait.
What makes a password resistant to cracking
Length is the primary defense. Aim for 12 characters minimum. Each character you add multiplies the time required exponentially, so a 14-character password is roughly 1,000 times harder to crack than a 10-character one.
Randomness is the second defense. A password like "Tr0pic@lSunset2024" looks strong because it is long and mixed, but it is actually a predictable pattern: a common word, a number, a year. An attacker's dictionary will include variations of common words and common number patterns. A truly random string like "7mK#9xL$2pQ@wR5v" takes much longer to crack because there is no pattern to exploit.
Avoiding dictionary words matters. Even if you mix in numbers and symbols, "Password1!" is still in most cracking dictionaries because it is a common variation. A password with no recognizable words — random letters, numbers, and symbols — resists dictionary attacks entirely.
The easiest way to create such a password is to use a password manager like Bitwarden, 1Password, or KeePass. These tools generate random 16-character passwords automatically. You only have to remember one strong master password, and the manager stores the rest.
How the password storage method affects cracking speed
Not all password hashes are equally hard to crack. The algorithm used to create the hash matters enormously.
Old algorithms like MD5 or SHA-1 are very fast to compute — a modern GPU can test billions of guesses per second. Passwords hashed with these methods are cracked quickly even if they are reasonably strong.
Modern algorithms like bcrypt, scrypt, or Argon2 are intentionally slow. They are designed to take a fraction of a second per guess, which sounds small but adds up. Testing a billion guesses takes weeks instead of seconds. This is why companies that care about security use these algorithms — they make cracking so slow that it becomes impractical.
Salting is another protection: a random string added to the password before hashing. This means the same password produces a different hash each time, so an attacker cannot use a pre-computed table of common passwords. They have to compute each hash individually, which takes much longer.
When you see news of a data breach, the real question is not whether passwords were stolen, but how they were stored. A breach of bcrypt-hashed, salted passwords is far less dangerous than a breach of MD5 hashes, even if the passwords themselves are identical.
Why two-factor authentication stops cracking from being useful
Even if an attacker cracks your password, they still cannot log in if you have two-factor authentication enabled. The second factor — a code from an authenticator app, a text message, a security key — is something only you have. The attacker has the password but not the second factor, so the cracked password is useless.
This is why two-factor authentication is the single most effective defense against password cracking. It does not prevent cracking; it makes cracking irrelevant. An attacker who spends weeks cracking your password still cannot access your account.
Enable two-factor authentication on accounts that matter: email, banking, social media, password managers. Use an authenticator app like Authy or Google Authenticator rather than text messages when possible, because text messages can be intercepted. A security key like a YubiKey is even stronger, but an authenticator app is a huge improvement over no second factor.
Frequently Asked Questions
How long does it actually take to crack a strong password?
A truly random 12-character password with mixed character types takes roughly 200 years to brute force on a single computer. A 16-character password takes roughly 45,000 years. These numbers assume the attacker is testing offline against a stolen hash with no rate limiting. In practice, attackers give up long before the time estimate is reached.
Can password cracking software be detected on my computer?
Yes. Cracking software uses a lot of CPU power and generates distinctive network traffic if it is testing live logins. Antivirus software and security tools can detect known cracking programs like Hashcat or John the Ripper. However, an attacker running cracking software on their own computer to test a stolen hash is invisible to you — you would only know if the breach itself is discovered.
Why do some websites force password changes every 90 days?
This practice is based on older security thinking and is now considered less effective than once believed. Forcing frequent changes often leads people to weaker passwords or predictable variations. A single strong password that you never reuse is better than a moderately strong password changed every 90 days. Change your password only if there is a breach, you suspect compromise, or you have reused it elsewhere.
Does using a passphrase like "correct horse battery staple" work better than a random password?
A passphrase of four random words is roughly equivalent to a 12-character random password in cracking time — both take years to brute force. The advantage of a passphrase is that it is easier to remember. The disadvantage is that if the words are not truly random (for example, if they follow a theme or a song lyric), an attacker's dictionary may include that combination. A password manager removes the need to choose between memorability and strength.
What should I do if I find out my password was in a breach?
Change it when ready on that site and any other site where you reused it. Check haveibeenpwned.com to see which breaches included your email address. If the breach included a password hash, the danger depends on how the hash was stored — but you should assume the worst and change the password anyway. If the breach included plaintext passwords, change when ready and assume the password is compromised.