Explainer
What Is AES-256 Encryption, and Could Anyone Crack It?
Short answer
AES-256 is the Advanced Encryption Standard, the cipher NIST published in 2001, used with a 256-bit key, which allows 2²⁵⁶ (about 1.16 × 10⁷⁷) possible keys. Trying half of them at a billion billion (10¹⁸) guesses a second would take about 1.8 × 10⁵¹ years, which is why real attacks target passwords and devices instead of the cipher.
- AES is the Advanced Encryption Standard that NIST published as FIPS 197 in 2001. The 256 is the key length in bits.
- A 256-bit key has 2²⁵⁶ ≈ 1.16 × 10⁷⁷ possible values. Searching half of them at 10¹⁸ guesses a second would take about 1.8 × 10⁵¹ years.
- Attackers go after the password or the device instead, which is why key stretching such as PBKDF2 and secrets that stay on the device matter.
- Grover's algorithm could in theory cut the search to about 2¹²⁸ steps, and NIST expects AES-256 to stay safe for a very long time.
- Quantum seals every file with AES-256-GCM under a key of its own, and uses post-quantum X-Wing for break-in records.
On this page
AES-256 appears in the description of nearly every privacy app, ours included. Here’s what it actually is, what the 256 means, how long a brute-force attack would take with the working shown, and why quantum computers change less than you might expect.
What AES is
AES, the Advanced Encryption Standard, is the encryption algorithm the US National Institute of Standards and Technology (NIST) published as standard FIPS 197 in 2001.
NIST chose it through an open public competition. The winning design, called Rijndael, came from two cryptographers, Joan Daemen and Vincent Rijmen.
AES is a symmetric cipher: the same secret key both encrypts and decrypts. It scrambles data in 128-bit blocks and accepts keys of 128, 192 or 256 bits.
You probably use it every day. When Apple added post-quantum protection to iMessage in 2024, each message was still encrypted with AES under a 256-bit key; what changed was the way the keys are agreed.
What the 256 means
The 256 is the length of the key in bits, and every extra bit doubles the number of possible keys.
A 256-bit key is one of 2²⁵⁶ (2 to the power of 256) possible values. Written out, that’s a 78-digit number, about 1.16 × 10⁷⁷.
The key length also sets how many rounds of scrambling AES runs: 10 for a 128-bit key, 12 for 192 bits and 14 for 256 bits. AES-256 has 2¹²⁸ times as many keys as AES-128. NIST considers all three sizes fine for current use, so the longer key mainly buys extra safety margin.
The real numbers, with the working shown
Brute-forcing an AES-256 key would take about 1.8 × 10⁵¹ years at a billion billion guesses a second. Here’s the working, so you can check it:
- Count the keys. 2²⁵⁶ ≈ 1.16 × 10⁷⁷.
- Halve it. On average an attacker hits the right key after trying half of them: about 5.8 × 10⁷⁶ guesses.
- Pick a speed. Assume 10¹⁸ guesses per second, a billion billion. That’s 5.8 × 10⁷⁶ ÷ 10¹⁸ ≈ 5.8 × 10⁵⁸ seconds.
- Convert to years. A year has about 3.16 × 10⁷ seconds, so 5.8 × 10⁵⁸ ÷ (3.16 × 10⁷) ≈ 1.8 × 10⁵¹ years.
The guess rate is an assumption, so stress-test it. A billion times faster, 10²⁷ guesses a second, still leaves about 1.8 × 10⁴² years.
| Key | Rounds | Possible keys | Average time at 10¹⁸ guesses a second |
|---|---|---|---|
| AES-128 | 10 | 2¹²⁸ ≈ 3.4 × 10³⁸ | ≈ 5.4 × 10¹² years |
| AES-192 | 12 | 2¹⁹² ≈ 6.3 × 10⁵⁷ | ≈ 9.9 × 10³¹ years |
| AES-256 | 14 | 2²⁵⁶ ≈ 1.16 × 10⁷⁷ | ≈ 1.8 × 10⁵¹ years |
Try your own assumptions with our encryption crack-time calculator.
Why attackers go after passwords and devices instead
Because guessing the key is hopeless, attackers go after what produces it or holds it: your password and your device.
When encryption is protected by a password or passcode, the key is derived from it, so guessing the password is enough, and that’s a far smaller search. Hive Systems’ 2026 password table gives a sense of scale. With 16 rented RTX 5090 graphics cards attacking passwords stored with bcrypt, a deliberately slow password hash, a random 8-character password using numbers, upper- and lowercase letters and symbols could take up to about 132 years. But a password that only looks random, o#mA24ft, fell in about three seconds on a single card once the attacker tried predictable guesses first.
Devices are the other way in. Someone who knows your passcode, or finds your phone unlocked, doesn’t need to break anything.
Key stretching and device-bound secrets
Two defenses make password guessing far more expensive:
- Key stretching runs the password through a deliberately slow function many times before it becomes a key, so each guess costs an attacker that same slow work. PBKDF2 (Password-Based Key Derivation Function 2) is a common choice, and OWASP’s guidance for PBKDF2 with HMAC-SHA-256 is “a work factor of 600,000 or more”.
- A device-bound secret mixes in a random key that stays on the device. Without it, even the right password produces the wrong key, so a copied file can’t be cracked on another computer by guessing passwords alone.
The second defense matters most for short codes. A 4-digit passcode has only 10,000 possibilities. In an app without a device-bound secret, anyone with a copy of its files could try them all on an ordinary computer, even at 600,000 rounds a guess. A device-bound secret takes that shortcut away.
What quantum computers change
Quantum computers threaten some kinds of encryption far more than others, and AES is in the less-affected group.
The relevant quantum attack on AES is Grover’s algorithm, which NIST describes as a brute-force key search in quadratically fewer steps. For AES-256, that cuts roughly 2²⁵⁶ steps to about 2¹²⁸, the same order of work as a classical brute-force search of AES-128.
NIST adds two catches. A 1997 proof by Zalka shows the full speed-up only arrives if every step runs one after another, while real-world attacks get their speed from running huge numbers of machines in parallel, which shrinks Grover’s advantage. NIST’s view is that Grover’s algorithm will quite likely offer “little or no advantage in attacking AES”. It expects AES-192 and AES-256 to stay safe for a very long time, even if quantum computers turn out cheaper than expected, and says current applications can keep using AES with 128-, 192- or 256-bit keys.
The bigger quantum risk is to public-key cryptography, the math devices use to agree on keys over the internet. When Apple upgraded iMessage, its security team noted that symmetric ciphers like AES “only require doubling the key size”, while public-key algorithms need fundamental changes. That’s the worry behind harvest now, decrypt later: someone records encrypted traffic today and waits for a quantum computer that can break the key exchange.
The fix is post-quantum key exchange such as ML-KEM, which NIST has standardized. Apple pairs it with classic elliptic-curve cryptography in iMessage, so the new design can never be less safe than the old one.
How Quantum uses AES-256-GCM
Quantum, the photo vault we make, seals every file with AES-256-GCM under a key of its own, and adds layers aimed at the weak points above.
- Tamper checks. GCM, short for Galois/Counter Mode, is a way of running AES that also produces an authentication tag, checked on decryption, so a tampered file is caught instead of opened.
- Per-file keys. Every photo, video, document and note has its own key.
- Passcode plus device secret. Keys come from your passcode, stretched with PBKDF2-SHA256 at 600,000 rounds, combined with a 256-bit secret held in this iPhone’s Keychain. Guessing the passcode on another computer isn’t enough without that secret.
- Names too. File names, folders and thumbnails are encrypted, not just the files.
- Hardware underneath. Apple’s hardware encryption wraps it all.
- Post-quantum sealing for break-in records. Break-in records are sealed with X-Wing, a hybrid of the post-quantum ML-KEM-768 and X25519, a long-established elliptic-curve method. Photos and files rely on AES-256, which quantum computers threaten far less than public-key cryptography.
- No account, no cloud. There are no servers, it works offline, and the App Store privacy label is Data Not Collected.

The design has trade-offs we’d rather you know up front. The passcode is a 4-digit PIN, which is why the device secret matters. On the iPhone itself, Quantum makes you wait after the fifth wrong passcode in a row, from 30 seconds up to an hour per try, and you can turn on break-in photos and an optional erase after 10 wrong tries. There’s no passcode reset and no backdoor, so a forgotten passcode can’t be recovered; see what to do if you forget a vault password. A vault also can’t be restored onto another device: to switch iPhones, you export and re-import, as our guide to moving a vault to a new iPhone explains.
Quantum costs $4.99 a month after a 7-day free trial, or $19.99 once (US prices; they vary by country), and there’s no free version. The full design is on our security page, and plans are on the pricing page.
Frequently asked questions
Has AES-256 ever been cracked?
Not as far as NIST is concerned: it says current applications can keep using AES with 256-bit keys, and it expects AES-256 to stay safe for a very long time, assuming no new weaknesses are found. Attackers go after weak or stolen passwords, leaked keys and flaws in the software around the cipher instead, because those are far easier targets than the key itself.
Is AES-256 more secure than AES-128?
It has a bigger safety margin: 2¹²⁸ times as many keys, and 14 rounds instead of 10. Both are considered secure, and NIST says current applications can keep using AES with 128-, 192- or 256-bit keys. The longer key mainly adds headroom, including against future quantum computers.
Can quantum computers break AES-256?
Not as far as anyone knows. Grover's algorithm could in theory cut a brute-force search from about 2²⁵⁶ steps to 2¹²⁸, but NIST notes those steps must run one after another, and it expects AES-256 to stay safe for a very long time. Quantum computers mainly threaten public-key cryptography.
Why does strong encryption still need a strong passcode?
Because the key is usually derived from your passcode. If someone can guess the passcode, they never have to break AES. Key stretching such as PBKDF2 makes each guess slower, and mixing in a secret stored only on the device means a copied file can't be cracked by guessing the passcode alone.
What does GCM mean in AES-256-GCM?
GCM stands for Galois/Counter Mode, a way of running AES that encrypts data and also produces an authentication tag. The tag is checked when the data is decrypted, so if anyone has altered the encrypted file, the check fails instead of quietly opening tampered data.
Sources
- FIPS 197: Advanced Encryption Standard (AES) — NIST
- Post-Quantum Cryptography: FAQs — NIST Computer Security Resource Center
- iMessage with PQ3: The new state of the art in quantum-secure messaging at scale — Apple Security Research
- The 2026 Password Table Is Here: How Fast Can a Hacker Crack Your Password? — Hive Systems
- Password Storage Cheat Sheet — OWASP
- AesGcmParams — MDN Web Docs
How this page was made. Researched and drafted with AI assistance, then checked against the sources above. Spotted something wrong or out of date? Tell us and we’ll fix it.
Changelog
- : First published.
First published .
