← Glossary

Security

What Is a Brute-Force Attack? Why Strong Keys Can't Be Guessed

A brute-force attack is an attempt to find a secret, such as a password or key, by systematically trying every possible value until the right one is found.

Key takeaways

How it works

A brute-force attack makes no clever assumptions. It simply tries one candidate secret after another, checks each, and stops when one works. The attacker's cost is the number of candidates multiplied by the cost of each check. Attacks that start with common words and patterns rather than all possibilities are called dictionary attacks and are far faster against human-chosen secrets.

Why the size of the space decides everything

Each extra bit of entropy doubles the number of candidates. An 8-character password can often be exhausted with modern hardware, while a randomly generated 128-bit key has about 3.4 times 10 to the 38 possibilities and cannot be searched in practice. This is why cryptocurrency private keys and seed phrases built from at least 128 bits of true randomness are considered safe from guessing, while short custom passwords or brain wallets built from memorable phrases are not.

Where brute force still matters

Weak points include passwords on exchange accounts, device PINs and any key made from a small or predictable source. A PIN of four digits has only ten thousand possibilities, so devices limit the number of tries or add delays. Online services protect against it by rate limiting, lockouts and two-factor authentication.

How to defend

Use long, random, unique passwords generated by a password manager, and turn on two-factor authentication. Let your wallet generate keys instead of choosing your own. Pick a PIN that is not a date or a pattern, and keep device lockout settings on. Remember that offline attacks, where an attacker has a copy of an encrypted file, can run unlimited guesses at hardware speed, so strength matters most for anything stored in encrypted files.

Example

An attacker has an encrypted wallet file protected by a short password. They can test billions of guesses per second offline, so a dictionary word falls quickly. A random 20-character password from a password manager would take longer than any attacker could wait.

Put it into practice

Pick a PIN that is hard to guess

Scrypt Wallet can protect sending with a PIN or a passkey. Avoid dates and patterns, and prefer a passkey where you can.

Create a free wallet Get Scrypt for Android

Frequently asked questions

Could someone guess my seed phrase?

Not if it was generated randomly with at least 128 bits of entropy. The number of possibilities is too large to search.

What is a dictionary attack?

A faster variant that tries likely candidates, such as common words and leaked passwords, before trying everything.

Does a PIN protect against it?

Only with limits on the number of tries. A short PIN is easy to brute-force if attempts are unlimited.

Related terms

Go deeper

Written by the Scrypt Wallet team · Updated 2026-10-02. General education, not financial, tax or legal advice.