← Back to section · Tutorials & Labs
Key Length and Security Strength: How Strong Is 128 Bits, Really?
Dismantling the 'longer is safer' intuition: what security strength in bits actually means, the scale of brute force, why RSA-2048 only delivers about 112 bits of strength, and why post-quantum algorithms are labelled by security categories instead of raw key length.
A common question: is 2048-bit eight times stronger than 256-bit?
Beginners browsing technical forums easily pick up an intuition: the bigger the number, the safer. Seeing that an AES-256 key is 256 bits and an RSA-2048 key is 2048 bits, they conclude RSA must be much stronger. That intuition barely holds inside a single algorithm and fails completely across algorithms. The yardstick cryptography actually uses for comparison is security strength, also measured in bits, but meaning something specific: how much computation an attacker must spend to break you.
First, build a sense of scale. “128 bits of security strength” means the best known attack still needs on the order of 2^128 elementary operations. What does that mean physically? All of humanity’s current computing power combined falls many orders of magnitude short per second; even if every atom in the universe were a small computer running for the age of the universe, they might not finish counting. That is why 128 bits is treated as the “infeasible for classical computing” threshold, and why mainstream recommendations land right there.
Translating 2^128 into human terms
2^128 is about 3.4 × 10^38 — a number with no physical feel. Convert it: suppose a super-machine that tries a trillion (10^12) keys per second — roughly the league of real dedicated hardware — searching half the key space would take it about 10^19 years. The universe is only about 13.8 billion years old, 1.38 × 10^10 years. In other words, had this machine run since the Big Bang, it would not have covered even a billionth of half the key space. Tie every computer on Earth together and multiply the speed by another million, and the conclusion does not change qualitatively. That is why cryptographers dare to call 128 bits of strength “unbreakable”: not a temporary engineering difficulty, but a physical impossibility at the level of orders of magnitude. By the same token, 64 bits of strength is rejected outright (2^64 is already within reach of large clusters), while 256 bits counts as luxurious insurance.
Symmetric algorithms: key length roughly equals strength
For symmetric algorithms like AES, the best known attacks are essentially brute-force key search (plus some impractical theoretical weakenings), so key length and strength roughly coincide: AES-128 gives about 128 bits of strength, AES-256 about 256 bits. Every extra bit doubles the attack cost — the power of exponential growth, and the reason keys need not be long: 256 bits is already absurdly beyond any practical need, chosen mostly for margin against the future.
One analogy needs its boundary marked. People say “brute force is like finding a needle in a haystack”, but that misleads you into thinking luck might find it early. On average an attacker must search half the key space before hitting the right key, and half of 2^128 is still astronomical; luck is worthless against an exponential. Another common misunderstanding is “quantum computers halve AES strength” — this refers to the theoretical square-root speedup from Grover’s algorithm, which reduces AES-128’s effective strength to roughly 64 bits and AES-256’s to roughly 128 bits. That is one reason conservative settings prefer AES-256. This site has dedicated articles on Grover; here, just keep the conclusion.
Asymmetric algorithms: long keys, discounted strength
RSA and elliptic curves are a different story entirely. Facing RSA, an attacker does not need to try keys one by one — they can attack the published large integer directly with factoring, and mature mathematical methods (the number field sieve) are vastly faster than brute force. The result: an RSA-2048 key, for all its length, delivers only about 112 bits of security strength; reaching 128 bits requires RSA-3072. Elliptic curves rest on a different hard problem and need far shorter keys for the same strength: a 256-bit elliptic-curve key (P-256, for example) already gives about 128 bits of strength.
The same law applies to post-quantum algorithms, only more visibly. Take ML-KEM-768: its public key is 1,184 bytes and its ciphertext 1,088 bytes — “longer” even than RSA’s — but that does not make it proportionally stronger than anything; its size comes from the lattice structure itself. What you should read is its labelled security category.
The correct way to read: categories, not byte counts
NIST labels post-quantum strength in a smart way: not by raw length, but by security category — Categories 1, 3, and 5 are anchored to “breaking this is at least as hard as breaking AES-128, AES-192, and AES-256 respectively”. ML-KEM-512, 768, and 1024 correspond to Categories 1, 3, and 5. The numbers 512, 768, 1024 denote the lattice dimension parameter — they are neither key bits nor strength bits, and beginners most often misread exactly this point.
Signatures work the same way: ML-DSA-44, 65, and 87 correspond to Categories 2, 3, and 5 (signature categories also fold in hash collision difficulty; this site’s standards column explains in detail). The correct way to read a parameter set: first check which security category it belongs to, then look at the byte sizes of its public key, signature, and ciphertext. The first answers “is it strong enough?”, the second answers “how much size can the system afford?”. Strength and size are two independent ledgers; mixing them produces wrong conclusions.
Wrap-up: three rules to take away
First, when comparing strength across algorithms, always compare security strength (bits or category), never key length. Second, choosing 256-bit symmetric keys is not waste; it is margin reserved against Grover’s quantum weakening. Third, whenever you see marketing like “we use a ten-thousand-bit key, so we are absolutely secure”, smile first: if the algorithm has a structural weakness, no key length can save it — security is always a game of the weakest link, and length is only one link.
Tags: key lengthsecurity strengthbrute forceprimer