In films, a hacker “cracks” a password in a minute while characters scroll across the screen. In reality, most passwords aren’t cracked at all — they are guessed, stolen or phished. Once you understand how attackers work, it’s easy to see which defences really matter.

Online and offline

An online attack means trying to sign in on the real site. The service limits attempts, shows CAPTCHAs and locks accounts, so only a few thousand of the most common passwords can be tried this way.

An offline attack becomes possible when a database of hashes is stolen. The attacker tests candidates on their own GPUs with no limits: billions per second for fast hashes such as MD5 or NTLM. That is why it matters how a site stores passwords, and why passwords need to be long.

The main guessing techniques

Attacks that need no guessing

What defends against each

AttackDefence
Dictionaries and rulesA random password from a generator, not an invented one
Brute forceLength: 16+ characters or 6 random words
Credential stuffingA unique password per site and a password manager
PhishingA password manager (won’t fill on a fake site), passkeys, hardware keys
InfostealersUpdates, software from official sources only, a second factor
Any password leakTwo-factor authentication

Test yourself

See how an attacker would rate your password with the password checker: it looks for dictionary words, dates and patterns and shows the time to crack for different scenarios. If the password is weak, create a new one — for example a 16-character password — and read what to do if a password has already leaked.