What attackers actually do when they "hack" a password
Password hacking is rarely about guessing. Attackers use automated tools to try thousands of combinations per second against stolen password lists, encrypted files, or live login pages. They don't need to be clever — they need scale and patience. The most common method is called a dictionary attack: the tool runs through millions of real passwords (harvested from past data breaches) and tries each one. If your password is "sunshine" or "password123", it will be found in minutes.
The second most common method is brute force, where the tool systematically tries every possible combination of characters until it finds a match. A six-character password made of letters and numbers can be cracked in hours on a modern computer. An eight-character password takes weeks. A twelve-character password takes centuries — which is why length matters more than complexity.
A third method, credential stuffing, exploits the fact that many people reuse the same password across multiple sites. When one company's database is breached, attackers when ready try those usernames and passwords on banks, email, social media, and shopping sites. If you used the same password on LinkedIn and your bank, and LinkedIn was breached, your bank account is now at risk.
Key Takeaways
- Attackers use automated tools that try thousands of passwords per second, not human guessing, so password length is your strongest defense.
- Dictionary attacks — running through millions of real passwords from past breaches — work because many people choose common, predictable passwords.
- Credential stuffing exploits password reuse, so using a unique password on every site prevents one breach from compromising all your accounts.
- A twelve-character password with random letters, numbers, and symbols would take centuries to crack by brute force, making it impractical for attackers to target.
- Two-factor authentication stops attackers even if they have your correct password, because they still cannot access your account without a second verification method.
Dictionary attacks: why common passwords fail when ready
Every time a company is breached — LinkedIn, Yahoo, Facebook, Adobe, Equifax — millions of passwords enter the public domain. Attackers compile these into lists called wordlists. The largest public wordlist contains over 1 billion passwords. When an attacker wants to break into your email or bank account, they start by running your username against this wordlist. If your password is on it, you are compromised in seconds.
The most commonly used passwords — "123456", "password", "12345678", "qwerty", "abc123" — appear in nearly every breach. Variations like "Password1" or "Sunshine2024" are also extremely common because people follow predictable patterns: a capital letter, a number, maybe a season or year. Attackers know these patterns and test them first.
This is why a password manager matters. A tool like Bitwarden, 1Password, or Dashlane generates random 16-character passwords that have never appeared in any breach and never will. No human would choose "7kR#mQ9$xL2@vN5w", so it will never be in a wordlist. Dictionary attacks fail when ready against it.
Brute force attacks and why password length stops them
If dictionary attacks fail, an attacker might try brute force: testing every possible combination of characters. A computer can test roughly 1 billion passwords per second on a single GPU (graphics processor). This sounds fast until you do the math.
A six-character password using uppercase, lowercase, numbers, and symbols has about 95 billion possible combinations. At 1 billion guesses per second, that takes 95 seconds. An eight-character password has 6 quadrillion combinations — about 6 million seconds, or roughly 70 days. A ten-character password takes 70 million days. A twelve-character password takes 70 billion days, or roughly 190 million years. At that point, the attacker has moved on to easier targets.
This is why security experts recommend 12 to 16 characters as a practical minimum. You do not need special symbols or mixed case if the password is long enough. "correcthorsebatterystaple" — 25 characters of lowercase letters — is stronger than "P@ssw0rd!" because length defeats brute force faster than complexity does.
Credential stuffing: the cost of password reuse
Credential stuffing is the reason a breach at one company can compromise your accounts everywhere else. When attackers obtain a list of usernames and passwords from a breached site, they when ready test those credentials against other high-value targets: email providers, banks, shopping sites, social media.
If you used the same password on both LinkedIn and Gmail, and LinkedIn was breached in 2012 (it was — 700 million accounts), then attackers could have accessed your Gmail account for over a decade. From Gmail, they can reset passwords on every other account you own: banking, shopping, social media, work email. One breach cascades into total compromise.
A unique password on every site stops this chain. If your LinkedIn password was "sunshine123" and your Gmail password is "7kR#mQ9$xL2@vN5w", the LinkedIn breach tells attackers nothing about Gmail. This is why password managers are essential — they make it practical to maintain dozens of unique, random passwords without memorizing any of them.
How attackers access password databases in the first place
Attackers do not need to hack your password directly. They can steal entire password databases from companies. This happens through SQL injection (inserting malicious code into a website's search box to extract the database), exploiting unpatched software vulnerabilities, stealing credentials from an employee's computer, or straightforward buying access from someone inside the company.
Once they have the database, they face a problem: most companies store passwords in hashed form, not plain text. A hash is a one-way encryption — the company cannot read it either, but they can verify your password by hashing what you type and comparing it to the stored hash. If the hashes match, you are logged in.
However, weak hashing methods (like MD5 or SHA-1) can be reversed or cracked using rainbow tables — precomputed lists of hashes for common passwords. Modern hashing methods like bcrypt or Argon2 are much slower to crack, which is why the company you use matters. A bank using Argon2 is far safer than a small website using MD5.
Why two-factor authentication stops password attacks cold
Even if an attacker has your correct password, two-factor authentication (2FA) stops them. When you log in, the site sends a code to your phone, email, or authenticator app. Without that code, the attacker cannot enter your account, even with the right password.
The strongest form of 2FA is a physical security key — a small USB device or NFC chip that you tap or insert to prove you are really you. Google, Microsoft, and Apple all support security keys. They cannot be phished, intercepted, or guessed. If you own a security key, an attacker with your password still cannot access your account.
SMS-based 2FA (codes sent by text) is weaker because attackers can sometimes intercept texts or trick your phone carrier into redirecting them. Authenticator apps (Google Authenticator, Authy, Microsoft Authenticator) are stronger because they generate codes on your phone that only you can see. But any 2FA is vastly better than none.
What you control and what you do not
You control your password length, uniqueness, and whether you use 2FA. You do not control whether the companies you use store passwords securely, patch their software, or train employees not to fall for phishing. You cannot prevent a breach.
What you can do is make yourself an unattractive target. An attacker with a list of 1 million passwords will test them against the easiest accounts first — people using common passwords, no 2FA, password reuse. If your password is 16 random characters, unique to each site, and protected by 2FA, the attacker will skip you and move to someone easier. Security is often about being a harder target than the next person, not about being impossible to breach.
Frequently Asked Questions
Can a hacker crack my password if they have my username?
Not quickly, unless your password is common. They would need to run a dictionary attack (trying millions of known passwords) or brute force (trying every combination). Dictionary attacks work in seconds if your password is in a breach database. Brute force takes years or centuries for a strong password. A 12-character random password stops both methods.
Is a password manager safe, or does it put all my passwords in one place?
A password manager puts all your passwords in one encrypted vault, but that vault is protected by one very strong master password that only you know. If someone breaks into the password manager's servers, they get encrypted data they cannot read. The risk of one breach is lower than the risk of reusing weak passwords across dozens of sites, which is what most people do without a manager.
Why do some sites force me to change my password every 90 days?
This practice is outdated. Security experts now recommend changing passwords only after a breach or if you suspect compromise. Forcing frequent changes encourages people to use weaker, more predictable passwords (like "Summer2024", "Fall2024") because they are easier to remember and modify. A long, random password you never change is stronger than a short one you change often.
What should I do if I find out my password was in a breach?
Change it when ready on that site and on any other site where you used the same password. You can check whether your email appears in known breaches using haveibeenpwned.com, a free tool that searches public breach databases. If your email is listed, change passwords on the affected sites first, then on any site where you reused those passwords.
Is a longer password always better than a complex one?
Yes. A 20-character password of lowercase letters is stronger than a 10-character password with uppercase, numbers, and symbols, because length defeats brute force faster than complexity does. Attackers test combinations in order of likelihood, so a long, straightforward password takes longer to crack than a short, complex one.