Brute Force: What Makes Password Guessing Succeed or Fail?
A four-digit code has 10,000 possible combinations, from 0000 to 9999. Trying them one after another is the simplest picture of a brute-force attack, but the number of guesses a system allows can change the outcome completely.
Brute force means repeatedly testing possible passwords or encryption keys until one works, or until the attacker stops. In its strictest form, it's an exhaustive search through every candidate in a defined set.
Security reports also use the term more broadly for automated guessing techniques. MITRE's brute-force description covers both guesses submitted to a service and attempts made against stolen password data.
Two Ways Attackers Guess a Password
More possibilities help, but the guessing conditions matter
With four digits, there are ten choices for each position: ten times ten times ten times ten. Six digits increase the total to one million possibilities, assuming every combination is allowed.
That arithmetic describes the possible codes. It doesn't tell you how many attempts a phone or website will accept, or how long checking each candidate takes.
Human choices complicate matters further. An attacker may try common passwords and predictable variations first instead of starting with the least likely combination and working patiently forward.
A dictionary attack uses a list of likely words or passwords. Password spraying tries a few common passwords across many accounts, spreading attempts around instead of concentrating them on one person.
Those approaches change the order or distribution of guesses. They don't make a password's length irrelevant, but they explain why a long, predictable choice can still be a poor secret.
Online: the service gets a say
In an online attack, the attacker submits guesses to the real login service. That service can limit repeated failures, slow further attempts or require another way to prove identity.
- Make a stolen password useless without the key in your hand.
- Sign in with a tap instead of typing a code.
- Protect Google, Microsoft, Apple and more than 1,000 other accounts.
Multi-factor authentication, or MFA, combines different kinds of proof, such as a password and approval from a registered device. It can keep a correctly guessed password from being sufficient to sign in, though it doesn't make every form of attack impossible.
NIST's digital-authentication guidance requires limits on failed attempts for covered services. It also rejects routine forced password changes unless there's evidence of compromise, a useful correction to the old “change it every month” habit.
The practical goal is to make repeated guessing expensive while still giving legitimate users a way to recover access.
How Hard Is It to Guess a 256-Bit Key?
Offline: the attacker brings the checking machine
An offline attack uses data the attacker has already copied, such as a stolen password database. The guesses can be tested on the attacker's own equipment without asking the original website each time.
Well-designed services store password hashes, values produced by a one-way calculation, instead of the passwords themselves. To test a candidate, an attacker repeats the relevant calculation and compares the result with the stolen value.
The website's login limit can't stop those local calculations.
Defenders make them harder by using a deliberately costly password-hashing method. They also use a salt, a distinct value added during password processing, so attackers can't reuse one precomputed result against everyone's stored password.
OWASP's password-storage guidance explains these protections. A salt isn't a secret password, and it doesn't rescue an easily guessed choice by itself.
- Stop typing passwords: the key enters them for you.
- Add a second factor to your accounts with the same device.
- Relax if you lose it: it is PIN-protected and built to resist tampering.
Encryption isn't automatically the weak link
Symmetric encryption uses the same secret key to scramble and recover data. Properly generated keys for strong modern symmetric encryption have enormous numbers of possibilities, making exhaustive key searches impractical.
A password protecting encrypted data can be a more tempting target. If software derives a key from that password, an attacker may try likely passwords instead of searching every possible key.
NIST's password-based key-derivation guidance explains why password strength and the cost of checking each guess matter. Strong encryption doesn't turn a predictable password into a random secret.
Use long, unique passwords generated by a password manager and enable MFA where available. If a password is exposed, change it and any reused copies rather than waiting for a scheduled reset.
When you see a claim that a password takes a certain number of seconds to crack, look for the assumptions. The answer depends on the candidate choices, the checking method, the available computing power and whether the defender can limit attempts.
Dictionary Attacks: Why Familiar Password Tricks Fail

Password Cracking: How Guesses Work Against a Stolen Database

Work Factor: Making Each Password Guess Cost More

QUOTE:
"Amateurs hack systems, professionals hack people."

