Password cracking
Password cracking is the act or process of ascertaining a password by various means. Learn how password cracking works, the most common techniques, and how organizations make cracking slow and unrewarding.
What is password cracking?
Password cracking means recovering a password without being given it. Attackers usually crack passwords from stolen password hashes, or by guessing against a live sign-in page. Security teams and penetration testers also crack passwords, with permission, to find weak ones before attackers do.
How does password cracking work?
Common techniques include:
- Brute force: trying every possible combination, which becomes impractical as length grows.
- Dictionary attacks: trying common words, leaked passwords, and predictable patterns.
- Rule-based attacks: applying common changes to dictionary words, such as capital letters, added numbers, or swapped characters.
- Credential stuffing: trying username and password pairs leaked from other sites.
- Precomputed tables: looking up hashes in large prepared tables, which salting defeats.
Offline cracking, against stolen hashes, is limited only by computing power. Online cracking, against a live service, is slowed by lockouts, rate limits, and multifactor authentication.
Password cracking vs. password sniffing
Password cracking works out a password from a hash or by guessing. Password sniffing captures a password as it travels across a network, usually because it was sent unencrypted. Both lead to stolen credentials, but they need different defenses.
Why does password cracking matter?
Weak and reused passwords fall quickly. Long, random, unique passwords, stored and generated with a password manager, make cracking far slower, and strong salted hashing protects stored passwords. Multifactor authentication ensures a cracked password is not enough on its own, especially for privileged accounts.
Security teams can also run authorized cracking tests against their own password hashes to find weak or reused passwords and require users to change them.
Frequently asked questions
What is password cracking?
Password cracking is the act or process of ascertaining a password by various means, such as guessing, brute force, or analyzing stolen password hashes.
How long does it take to crack a password?
It depends on the password's length and randomness, how it was stored, and the attacker's resources. Long random passwords protected by strong hashing take far longer than short or common ones.
How do you protect against password cracking?
Use long, unique, randomly generated passwords, store them with strong salted hashing, limit failed attempts, and require multifactor authentication.
Make every password hard to crack
Generate and save strong, unique passwords as you work.
Related terms
Password sniffing
Password sniffing is harvesting passwords by means of software that scans traffic on a network.
Read now →One-way encryption
One-way encryption turns plaintext into ciphertext and stores it scrambled, in a form that cannot be unscrambled even if the cipher key is known.
Read now →