Penetration testing
How Password Cracking Works, and How to Stop It

Penetration testers crack passwords to show how weak ones put a whole network at risk. Developers and administrators need to understand the same process to store passwords safely. This guide explains how it works in plain language.
Why Systems Store Hashes
A well-built system does not store your password. It stores a hash: the output of a one-way function. When you log in, it hashes what you typed and compares. If the database leaks, attackers get hashes, not passwords, and must crack them by guessing.
How Cracking Works
Cracking is guessing at speed: hash a candidate password, compare with the stolen hash, repeat billions of times. Tools such as Hashcat and John the Ripper do this using graphics cards. The common methods:
- Dictionary attacks: try words from lists of real leaked passwords
- Rules: apply common changes to each word: capital first letter, add a year, swap "a" for "@"
- Masks: try patterns such as a word followed by four digits
- Brute force: try every combination, only practical for short passwords
Why Some Hashes Fall Fast
- Fast, general-purpose hashes (old MD5 or SHA-1 schemes, and Windows NTLM hashes) can be tested at enormous speed
- No salt: without a unique random value added to each password, identical passwords have identical hashes and precomputed tables work
- Slow, salted password hashes such as bcrypt, scrypt and Argon2 are designed to make each guess expensive, so cracking is far slower
Where Testers Meet Hashes
In network assessments, hashes appear in captured authentication traffic, in Kerberoasting and AS-REP roasting, and in credential dumps from compromised machines. Cracking a few shows the client which passwords and policies are weak. See Active Directory attacks explained. Any cracked passwords are client data: handle them as the contract requires and never reuse them.
How to Store Passwords Safely (for Developers)
- Use a slow password hashing function: Argon2, scrypt or bcrypt, with recommended settings
- Let the library generate a unique salt for each password
- Never encrypt passwords reversibly, and never store them in plain text
- Rate-limit and monitor login attempts
- Check new passwords against lists of known breached passwords
How to Choose Passwords Safely (for Everyone)
- Use long passphrases rather than short complex words
- Never reuse a password across sites
- Use a password manager
- Turn on multi-factor authentication wherever it is offered
Learning More
Password attacks against network services and Active Directory are part of our network and Active Directory course, and authentication flaws in web apps and APIs are covered in the Application Security course.
Want to see why weak passwords matter in a real network? Book free trial classes. Contact us or call +91 86868 92922.
Where This Guide Fits in Our Training
- VAPT Training in Hyderabad: the 12-week VAPT Track: application, network and Active Directory testing, and the reports
- Penetration Testing Course in Hyderabad: the VAPT Track, from fundamentals to professional testing
- Cyber Security Course with Practical Labs in Hyderabad: how the labs work and what you practise in each class
Courses Mentioned in This Guide
More Guides
OSINT for Beginners: Reconnaissance from Public Sources
Open-source intelligence for authorized security testing: domains, subdomains, certificates, exposed services and people, with the legal and ethical limits.
Read the guide →Pivoting in Penetration Testing Explained for Beginners
What pivoting means in penetration testing: single and double pivots, SSH port forwarding, SOCKS proxies, a safe three-machine lab and how defenders detect it.
Read the guide →BloodHound for Beginners: Map Active Directory Attack Paths
Use BloodHound in an Active Directory lab: collect data, load it, run built-in queries and understand how defenders use the same graph to fix attack paths.
Read the guide →What Is VAPT? Vulnerability Assessment vs Penetration Testing
VAPT explained: how a vulnerability assessment differs from a penetration test, the types of VAPT, how an engagement runs and what the final report contains.
Read the guide →Start Your Cyber Security Career
Talk to a counselor, choose the right course for your goals, and get the fee, syllabus and next batch dates in writing.
- Call+91 86868 92922
Open 7 days: Mon to Fri 8:30 AM to 8:30 PM IST
Sat and Sun 10 AM to 6 PM IST - Emailinfo@hackingtrainer.com
- VisitGround Floor, G-3, Sri Venkatasai Nest, Kallu Compound Road, Nagarjuna Nagar Colony, Yella Reddy Guda, Ameerpet, Hyderabad – 500073
Open in Google Maps