keepcalculator

06 Numbers and Powers

Why Strong Passwords Can Still Be Hacked

Card No. 06·62106 · Updated · Standard formula, shown below

Strong passwords can still be hacked because a password is only one link in a chain that includes the server where it is stored, the device where it is typed, the network it travels across, and the human who chooses it. Even a 20-character random password fails if the website stores it in plain text, if you reuse it on a site that gets breached, or if you type it into a phishing page. This article explains the specific ways strong passwords are defeated, what you can do about each one, and why no password alone can guarantee your account stays safe.

How a Password Is Stored on the Server

The first place a password can fail is not at your keyboard but on the server that receives it. When you create a password, the website should not save the password itself; it should save a one-way mathematical transformation of it, called a hash. When you log in, the server hashes what you type and compares the result to the stored hash. If the two match, you get in.

Hashes are designed to be easy to compute in one direction and practically impossible to reverse. But not all hashing is equal. Older algorithms like MD5 and SHA-1 are fast, which is exactly what an attacker wants: they can try billions of guesses per second. Modern systems use deliberately slow algorithms such as bcrypt, scrypt, Argon2, or PBKDF2, which add a work factor that slows down each guess. If a site still uses a fast hash, a strong password of 12 random characters can be cracked offline in days or weeks, depending on the attacker’s hardware.

Even with a good hash, the server must also use a unique salt for each password. A salt is a random string added to the password before hashing, so that two users with the same password get different hashes. Without salts, an attacker can precompute a giant table of common password hashes and look up millions of accounts instantly. With salts, each account requires a separate cracking effort.

What can you do? You cannot control how a website stores your password. Your only defense is to choose a password that is long and random enough that even a fast hash would take centuries to crack, and to never reuse that password on a site that might not follow best practices.

Phishing: The Password You Give Away Yourself

A strong password does nothing if you type it into a fake login page. Phishing is the single most effective way attackers obtain passwords, because it bypasses all technical security. A phishing email or text message pretends to be from your bank, your employer, or a service you use, and directs you to a website that looks identical to the real one. When you enter your password, it is sent to the attacker.

Modern phishing is highly targeted. Spear phishing uses your name, your job title, or a recent purchase to make the message more convincing. Some phishing pages are reverse proxies: they sit between you and the real site, capture your password, then forward your login to the real site so you are logged in and see no error. You have no way to know your password was stolen until the attacker uses it.

The only reliable protection is to verify the URL before entering credentials, use a password manager that auto-fills only on the exact domain, and enable two-factor authentication so a stolen password alone is not enough. If you suspect you have entered your password on a phishing page, change it immediately on the real site and check your recent activity.

Credential Stuffing and Password Reuse

Attackers do not need to crack your strong password if they already have it from another breach. Data breaches are common, and when a site is breached, the stolen email addresses and passwords are often published or sold. If you used the same password on that site and on your bank account, the attacker simply tries the same email and password on dozens of major sites. This automated attack is called credential stuffing.

Even a password that is unique but similar can be guessed. If your password for one site is Tr0ub4dor& and for another it is Tr0ub4dor#, an attacker who sees the first can try common variations. Password managers solve this by generating a different random password for every site. That way, a breach on one site never compromises another.

Reusing a password across multiple sites is the single most common way a strong password is defeated. A 16-character random password is strong, but if it is used on a forum that gets breached, it is no longer a secret. The attacker does not need to crack it; they just need to try it on other sites.

Keyloggers and Malware on Your Device

If your computer or phone is infected with malware, a keylogger can record every keystroke you make, including your password, even if it is 20 characters of random letters, numbers, and symbols. Keyloggers can be installed through malicious downloads, infected USB drives, or browser extensions that steal data. Some malware takes screenshots when you type, or captures the clipboard when you copy a password from a password manager.

Mobile devices are not immune. Malicious apps can request accessibility permissions that allow them to read text on the screen, including password fields. A fake keyboard app can log everything you type. Even a secure password manager can be compromised if the device itself is compromised.

To reduce this risk, keep your operating system and apps updated, install software only from official app stores, and avoid clicking suspicious links. If you suspect malware, run a full scan and change your passwords from a different, trusted device.

Man-in-the-Middle and Network Attacks

When you type your password on a website that does not use HTTPS, or on a public Wi-Fi network that is not encrypted, an attacker on the same network can intercept the data as it travels. This is called a man-in-the-middle attack. The attacker can capture the password in transit, or they can modify the page you are viewing to inject a fake login form.

Modern browsers warn you when a site is not secure, but many users ignore the warnings. Public Wi-Fi networks, such as those in coffee shops or airports, are especially risky because the network operator can see all unencrypted traffic. Even on a secure HTTPS site, the connection is encrypted, but if the attacker can install a rogue certificate on your device, they can decrypt the traffic.

To protect against network attacks, always use HTTPS (look for the padlock icon), avoid entering passwords on public Wi-Fi unless you use a VPN, and be wary of certificate warnings. A VPN encrypts your traffic between your device and the VPN server, making it much harder for an attacker on the same network to see what you send.

Social Engineering and Password Reset

Sometimes the attacker does not need your password at all. They can call your bank’s support line, claim to be you, and answer security questions that you have already posted on social media. Many services allow password resets via email or SMS, and if the attacker can access your email or intercept your SMS, they can reset your password and lock you out.

Security questions are a weak link. Questions like “What is your mother’s maiden name?” or “What was your first car?” often have answers that are publicly discoverable or guessable. Some answers are so common that an attacker can guess them in a few tries. Even if your password is strong, a reset link sent to your email can be used if your email account is not well protected.

To mitigate this, use a password manager to store random answers to security questions, or choose questions that are not publicly answerable. Enable two-factor authentication on your email account, because it is the gateway to almost every other account. If a service offers two-factor authentication, always enable it, preferably with an authenticator app rather than SMS.

Two-Factor Authentication and Its Limits

Two-factor authentication (2FA) adds a second step after your password: a code from an authenticator app, a text message, or a hardware key. This means that even if your password is stolen, the attacker cannot get in without the second factor. However, 2FA is not foolproof. SMS-based 2FA can be defeated by SIM swapping, where an attacker convinces your mobile carrier to transfer your phone number to a SIM card they control. Then they receive your SMS codes.

Authenticator apps are more secure than SMS, but they are still vulnerable to phishing. A sophisticated phishing page can ask for the 2FA code as well as the password, and relay both to the real site in real time. Hardware keys, such as YubiKey, are the most secure because they use cryptographic protocols that resist phishing, but they are not universally supported.

Even with 2FA, you should still use a strong, unique password. 2FA is a second layer, not a replacement. If your password is weak and the attacker can guess it, they still have a chance to intercept the 2FA code. The combination of a long random password and a hardware key is the best protection available today.

How to Choose a Password That Survives These Threats

Given all these attack vectors, what should you do? The most important step is to use a password manager. A password manager generates a random 16-character or longer password for each site, stores it in an encrypted vault, and auto-fills it for you. You only need to remember one master password, which should be a passphrase of four or five random words, or a long string of characters that you can type without looking.

For your master password, length matters more than complexity. A passphrase like correct horse battery staple is easier to remember and harder to crack than a short random string like Tr0ub4dor&. Use at least 12 characters, and ideally 16 or more. Do not use a phrase from a song, a book, or a common quote, because attackers use dictionary attacks that include common phrases.

Enable two-factor authentication on every service that offers it, and prefer an authenticator app or hardware key over SMS. Never reuse a password across sites. If a site is breached, change the password immediately. And be suspicious of any email or message that asks you to log in, even if it looks official. Go directly to the website by typing the URL yourself.

Finally, understand that no password is unbreakable. The goal is to make the cost of breaking it higher than the value of what it protects. A 16-character random password with 94 possible characters has about 104 bits of entropy. At 1 billion guesses per second, it would take about 400 billion years to try all possibilities. That is far longer than the age of the universe, so for all practical purposes, it is unbreakable by brute force. The real threats are not brute force but phishing, reuse, and malware.

Frequently Asked Questions

How long should my password be to be safe?

At least 12 characters, but 16 is better. A 16-character random password from a password manager is effectively unbreakable by brute force. For your master password, use a passphrase of 4-5 random words, which can be longer and easier to remember.

Is it safe to use a password manager?

Yes, for most people. Password managers are widely used and well-audited. They protect you from reuse and phishing. The main risk is the master password, so make it strong and enable 2FA on your password manager account.

Can a strong password be cracked by a supercomputer?

In theory, yes, if the hash is weak and the attacker has massive computing power. But a 16-character random password has so many possibilities that even the fastest supercomputer would take billions of years. The practical risk is not brute force but other attacks.

Why do some websites still limit password length?

Some older systems have technical limits, often due to legacy code. This is a security risk because shorter passwords are easier to crack. If a site limits your password to 8 characters, use a random password and enable 2FA if available. Consider using a different service if possible.

What should I do if my password is stolen?

Change it immediately on that site, and on any other site where you used the same password. Enable 2FA, check your account activity, and be alert for phishing emails. If you use a password manager, it can help you update all affected passwords.

Related

Method: the standard formula for this calculation, rounded as each result states. See how the calculators work or report an error.

More cards in this drawer

The whole Numbers and Powers drawer →