Free tool

How long would it take to crack this?

Choose what’s being guessed and how fast the attacker is, and see how long a brute-force search would take on average, from a 4-digit PIN to an AES-256 key.

Runs in your browser. Nothing you enter is uploaded.

What’s being guessed

A random 256-bit key, the size Quantum uses for every file.

Search space2 to the power of 256, about 1.16 times 10 to the power of 77 possibilities256 bits

How fast the attacker guesses

Defenses and what-ifs

Raw AES keys aren’t stretched: they’re random already, so attackers guess the key itself.
Adds a theoretical quantum attacker, who needs about √N steps to search N possibilities.
Expected time to find it1.8 times 10 to the power of 51 yearsabout 10 to the power of 41 times the age of the universe
Average guesses
5.8 times 10 to the power of 76
Guess rate
10 to the power of 18 a second

In practice, nobody attacks AES-256 head-on. Attacks go after the password, the device or the person. AES-256, explained

How this calculator works

It counts every possible answer, assumes the attacker finds the right one halfway through on average, and divides by how fast they can guess.

  • Possibilities. A 4-digit PIN has 10⁴ = 10,000. A random password multiplies its character set once per character, so 12 characters from all 95 letters, digits and symbols give 95¹² ≈ 5.4 × 10²³. A Diceware passphrase multiplies by 7,776 per word, and an AES key doubles with every bit.
  • Expected time is half the possibilities divided by the guesses a second. If the answer is the very last one tried, it takes twice as long.
  • Key stretching divides the attacker’s speed by 600,000.
  • Grover’s algorithm needs about √N steps to search N possibilities. The calculator lets each step run as fast as one ordinary guess, which flatters a quantum attacker.

The assumptions: the answer was picked at random; the attacker knows its format (the length and character types, or the word list) but nothing else; and nothing slows them down, with no lockouts or waits between tries. A year is 365.25 days, and the universe is about 13.8 billion years old. Everything runs in your browser, and the calculator never asks for a real password.

Average time to find a random answer at 10¹² guesses a second (a GPU rig)
What’s guessedPossibilitiesNo stretchingPBKDF2, 600,000 rounds
4-digit PIN10,000InstantlyInstantly
6-digit PIN1,000,000InstantlyInstantly
8 random characters, all 956.63 × 10¹⁵55 minutes63 years
12 random characters, all 955.4 × 10²³8,600 years5.1 × 10⁹ years
16 random lowercase letters4.36 × 10²²690 years4.1 × 10⁸ years
6 random Diceware words2.21 × 10²³3,500 years2.1 × 10⁹ years
AES-128 key3.4 × 10³⁸5.4 × 10¹⁸ yearsDoesn’t apply
AES-256 key1.16 × 10⁷⁷1.8 × 10⁵⁷ yearsDoesn’t apply

What 256-bit means

A 256-bit key is a string of 256 random ones and zeros, so there are 2²⁵⁶ possible keys: about 1.16 × 10⁷⁷, a 78-digit number. Every extra bit doubles the count, which makes AES-256 not twice as hard to brute-force as AES-128 but 2¹²⁸ times as hard.

AES, the Advanced Encryption Standard, is NIST’s FIPS 197, and it takes 128-, 192- or 256-bit keys. At a billion billion (10¹⁸) guesses a second, an AES-128 key takes about 5.4 × 10¹² years to find on average, and an AES-256 key about 1.8 × 10⁵¹ years. For how the cipher itself works, read what AES-256 encryption is.

Why passwords, not ciphers, get cracked

Passwords get cracked because people choose them, and people are predictable. When a key comes from a password, the attacker only has to guess the password, and they start with leaked and common ones instead of trying every combination.

Hive Systems’ 2026 password table shows the gap. Against 16 rented RTX 5090 graphics cards and passwords stored with bcrypt, trying every 8-character password made of letters, digits and eight common symbols would take about 132 years. A random-looking one fell in about three seconds on a single card once the attackers tried leaked and predictable passwords first.

Key stretching fights back by making every guess expensive: the system runs the password through a deliberately slow function many times before it becomes a key. OWASP’s Password Storage Cheat Sheet recommends PBKDF2 with HMAC-SHA-256 and at least 600,000 iterations where FIPS-140 compliance is required. Turn on stretching above, and a random 8-character password against a GPU rig goes from about 55 minutes to about 63 years.

Length is the other lever, and it beats complexity. Each extra character multiplies the possibilities by the size of the character set, so 16 random lowercase letters (4.4 × 10²²) beat 10 random characters from all 95 (6 × 10¹⁹). Six random Diceware words give 2.2 × 10²³ possibilities, about 77.5 bits, and are far easier to remember.

What about quantum computers?

For AES-256, they don’t change the answer. Grover’s algorithm lets a quantum computer search N possibilities in about √N steps, which in theory turns a 256-bit key into a 128-bit problem: still about 3.4 × 10³⁸ steps.

In practice, it needs large, error-corrected quantum computers far beyond today’s, and its steps must run one after another, so it can’t be spread across thousands of machines the way ordinary guessing can. NIST expects it to help very little against AES, if at all, and expects AES-128 to stay secure for decades and AES-256 for a very long time.

The bigger quantum worry is public-key cryptography, which devices use to agree on a shared key over a network. A large enough quantum computer could break today’s RSA and elliptic-curve methods, which is why NIST standardized ML-KEM (FIPS 203) for key exchange.

How Quantum uses this

Quantum, our photo vault app for iPhone, is built around these numbers:

  • AES-256-GCM for every file. Each photo, video, document and note is encrypted under a 256-bit key of its own.
  • A stretched passcode plus a device secret. Keys come from your passcode, stretched with PBKDF2-SHA256 for 600,000 rounds, combined with a 256-bit secret kept in this iPhone’s Keychain. A vault copied off the phone can’t be opened, so there’s nothing to guess against elsewhere.
  • Waits after wrong guesses. After the fifth wrong passcode in a row, Quantum makes you wait, from 30 seconds up to an hour per try.

That’s how a 4-digit passcode holds up in Quantum even though this calculator finds one instantly: the guessing has to happen on your iPhone, at the app’s pace. It isn’t built to stop a forensic lab that can extract your iPhone’s Keychain, and nobody can reset a forgotten passcode, us included. Here’s what to do if you forget a vault password. The full design, limits and all, is on our security page.

Questions

How long would it take to crack AES-256?

About 1.8 × 10⁵¹ years on average, even at a billion billion (10¹⁸) guesses a second. That’s roughly 10⁴¹ times the age of the universe, which is why real attacks go after the password, the device or the person instead of the cipher.

Can quantum computers break AES-256?

Not in practice. Grover’s algorithm could in theory cut a brute-force search to about 2¹²⁸ steps, which is still far out of reach, and it needs huge error-corrected quantum computers and parallelizes poorly. NIST expects AES-256 to stay safe for a very long time.

How long does it take to crack a 4-digit PIN?

Almost no time if nothing limits the guesses. A laptop gets through all 10,000 in a fraction of a second, and even with 600,000 rounds of PBKDF2 it takes about 3 seconds on average. That’s why apps limit guesses: Quantum makes you wait up to an hour between tries after the fifth wrong passcode.

Is a long password better than a complex one?

Usually, yes. Each extra character multiplies the possibilities by the size of the character set, so 16 random lowercase letters (about 4.4 × 10²²) beat 10 random characters from all 95 (about 6 × 10¹⁹). Either way, it only holds if the characters are random, not a word with a few swaps.

Does key stretching make a weak password safe?

No, but it buys time. PBKDF2-SHA256 at 600,000 rounds, the minimum OWASP recommends for PBKDF2, makes every guess 600,000 times slower: a random 8-character password goes from under an hour to about 63 years against a GPU rig. A common password still falls fast, because attackers try it first.

Updated December 5, 2026. Found a mistake? Tell us.