Easy, hard, and the lock on the internet
Some problems are easy to check but seem impossibly hard to solve. Nobody has proved that gap is real. The security of almost everything you do online depends on it.
1. What "hard" means for a computer
A problem is hard when the only known way to solve it is to try the possibilities, and the possibilities multiply.
Two words first. An algorithm is a recipe: exact steps that turn an input into an answer. Long division is one. A problem is the task itself, such as "sort these names".
Where the explosion comes from
Suppose you must make a series of yes/no choices. Which guests to invite. Which switches to turn on. Every new choice doubles the number of complete outcomes, because each earlier outcome now comes in two versions.
Start with one outcome.One yes/no choice: 2 outcomes.A second choice doubles it: 4.A third: 8.A fourth: 16. Every new choice doubles the row.
That is the whole secret of "exponential growth". Nothing exotic happens. Choices multiply instead of adding. Mathematicians write the count as 2ⁿ: 2 multiplied by itself n times, where n is the number of choices.
Measure growth, not seconds
Machines differ, so computer scientists do not time algorithms in seconds. They ask: as the input gets bigger, how fast does the number of steps grow? The size of an input, written n, is how much you have to write down to state it: the number of names in the list, or the number of digits in a number.
Steps grow like n, n² or n³. Doubling the input multiplies the work by a fixed amount.
Example: everyone at a party shakes hands. Twice the guests, four times the handshakes.
Steps grow like 2ⁿ. Adding one item doubles the work.
Example: a combination lock. One extra dial multiplies the combinations by ten.
Watch the work grow as the input grows.n²: a steady climb.2ⁿ: starts lower, then goes vertical.By n = 10 it has left the chart. It never comes back.
Now in time, on a computer doing a billion steps a second:
| Size n | n² steps take | 2ⁿ steps take |
|---|---|---|
| 30 | an instant | 1 second |
| 50 | an instant | 13 days |
| 100 | an instant | 40 trillion years |
| 300 | an instant | a 1 followed by 73 zeros, in years |
Faster chips do not help. A computer a thousand times faster lets you handle ten more items, because ten doublings make about a thousand. The wall moves a few paces and stands.
Polynomial time: the steps grow polynomially. Treated as "feasible". Exponential time: treated as "hopeless at scale".
2. P: the problems computers solve quickly
P is the set of problems that some algorithm solves in polynomial time. A problem lands in P when someone finds a shortcut that avoids trying everything.
Almost every interesting problem has an exponential number of possibilities. A list of 20 names can be ordered in over two million million million ways. Yet sorting is easy, because you never look at those orderings. You compare names in pairs and build the answer piece by piece.
So the number of possibilities does not make a problem hard. What matters is whether a shortcut exists. Problems in P have one. The strange part is how little separates a problem with a shortcut from one without:
| Quick: a shortcut is known | Slow: none is known |
|---|---|
| Find the shortest route from A to B | Find the shortest route that visits every town |
| Colour a map with 2 colours so neighbours differ | Do it with 3 colours |
| Plan a walk that crosses every bridge once | Plan a walk that visits every town once |
| Split people into compatible pairs | Split them into compatible groups of three |
| Decide whether a number is prime | Find the numbers that divide it |
Each row changes one detail and the shortcut vanishes. Nobody can yet explain why from the outside. You have to find the shortcut, or fail to.
The last row carries a warning. A provably quick test for primes was only found in 2002, after centuries of looking. A problem is in P if a fast algorithm exists, whether or not anyone has found it. Keep this in mind for section 8.
3. NP: the problems where checking is quick
NP is the set of problems where, if the answer is "yes", a short piece of evidence exists that you can check quickly.
Think of a jigsaw. Solving a 5,000-piece puzzle takes days. Checking a finished one takes a glance. The finished puzzle is the evidence, and checking it is polynomial work.
Fill in a blank sudoku.
Which two primes multiply to 2,021?
Seat 100 guests so no feuding pair shares a table.
Scan each row, column and box.
Multiply 43 by 47. You get 2,021.
Walk the tables with the list of feuds.
Someone claims the answer is 43 × 47.Checking the claim takes one multiplication.Finding it yourself: try dividing by each prime in turn.14 tries for a 4-digit number. A 617-digit number needs more tries than there are atoms in the universe.
Put it another way. An NP problem is a haystack with a needle-detector. You may not know where the needle is. But if someone hands you a straw, you can tell at once whether it is the needle.
The same lopsidedness runs through life. Anyone can hear that a melody is good. Few can write one. A referee checks in a week a proof that took ten years to find. Recognising a good answer is cheaper than producing one.
"Yes" has a receipt. "No" does not.
If a seating plan exists, showing it settles the matter. If none exists, what could you show? No short receipt is known. You seem to need to rule out every plan. NP is defined by the "yes" side only, and that asymmetry returns in section 6.
NP does not mean "not polynomial". It stands for "nondeterministic polynomial", an old technical phrase. Read it as "quick to check".
Every problem in P is also in NP. If you can solve a problem quickly, you can check a claimed answer quickly: solve it yourself and compare. So P sits inside NP. The question is whether NP is any bigger.
4. The P vs NP question
If an answer is quick to check, is it always quick to find? Nobody knows.
- P = NP: every haystack with a needle-detector also has a shortcut to the needle. We have not found the shortcuts yet.
- P ≠ NP: for some haystacks, no shortcut exists. Searching is unavoidable.
Close to nine in ten researchers polled believe P ≠ NP. Believed It matches all experience. But belief is not proof.
Why "obviously no shortcut" is not good enough
Shortcuts have surprised experts before.
- Multiplication. The school method was assumed to be the fastest possible. In 1960 a 23-year-old student, Anatoly Karatsuba, beat it within a week of hearing the claim.
- Primes. The quick test from section 2 hid until 2002.
- The table in section 2. The left column looks as hard as the right until you know the trick.
So "nobody can see a shortcut" has a poor record as evidence. To prove P ≠ NP you must rule out every possible algorithm, including ones too strange for anyone to have imagined. Researchers have also proved that the main proof techniques we own cannot settle the question. Proven
Why it matters
If P = NP, finding a proof is about as easy as checking one. So is finding a design, a schedule or a scientific theory. The question asks whether creative search can be automated.
In 2000 the Clay Mathematics Institute named it one of seven Millennium Prize Problems, with one million US dollars for a solution. One of the seven has been solved since. This one has not.
5. Reductions: the keystone idea
A reduction rewrites one problem as another. It lets us compare the difficulty of two problems without solving either.
Example: an exam timetable is a colouring puzzle
Problem A, timetabling. A school has five exams. Some pairs share students, so they cannot run together. Do three time slots suffice?
Problem B, colouring. Dots are joined by lines. Can you colour every dot with three colours so that no line joins two dots of the same colour?
The rewrite: draw a dot per exam. Join two dots if the exams share a student. A colour now means a time slot.
Each exam becomes a dot.A line joins two exams that share a student.A colour is a day. Maths takes Monday.Physics is joined to Maths, so it needs a different day.History is joined to Maths but not to Physics. It can share Tuesday.Art is joined only to blue dots so far. It can share Monday.Chemistry touches a red and a blue. It needs a third day.The finished colouring is the timetable.
A valid colouring is a valid timetable. Anyone with a colouring-solver can now solve timetables without knowing what an exam is.
Sudoku goes the same way. Draw a dot for each of the 81 cells. Join two dots if their cells share a row, column or box. Use nine colours, one per digit. Solving the sudoku is colouring those dots. Two puzzles that look nothing alike turn out to be the same puzzle.
The general shape
We say "A reduces to B". The rewrite must take polynomial time. A quick step followed by a quick step is still quick, so the whole chain is as fast as the B-solver. This is the reason polynomial time is the yardstick: it survives being chained.
Why this ranks problems by difficulty
Once A reduces to B, two conclusions follow. Everything after this rests on them.
- If B is easy, A is easy. Rewrite, then run the fast B-solver.
- If A is hard, B is hard. A fast B-solver would give a fast A-solver, by the line above. So B cannot be the easier one.
"A reduces to B" sounds as if A is the bigger problem. It is the reverse. B is at least as hard as A, because B can do everything A can. Colouring is at least as hard as timetabling and at least as hard as sudoku.
Reductions also chain. If A reduces to B and B reduces to C, then A reduces to C. So we can build a ladder of difficulty without knowing how hard any single rung is.
6. NP-complete: one problem wearing many masks
Some problems in NP are so expressive that every other NP problem can be rewritten as them. Solve one quickly and you solve them all.
In 1971 Stephen Cook proved that one plain logic puzzle, called SAT, sits at the top of the ladder. Every problem in NP reduces to it. Proven
SAT (satisfiability): you get a list of rules about on/off switches. Is there a setting of the switches that obeys every rule?
Why one puzzle can express all the others
Take the timetable. Give each exam three switches, one per day. Then write the requirements as rules:
NOT (Maths-Mon AND Physics-Mon) clashing exams differ
NOT (Maths-Tue AND Physics-Tue)
... and so on for each exam and each clash
A switch setting that obeys every rule is a timetable. That handles one problem. Cook's insight handles all of them at once:
- A problem is in NP when a quick checking procedure exists for its answers.
- A quick procedure can be built as a computer circuit. Circuits are made of switches joined by AND, OR and NOT.
- So "is there an answer the checker accepts?" becomes "is there a switch setting that makes this circuit say yes?" That question is SAT.
Anything checkable by a computer can be phrased in the language computers are built from.
A year later Richard Karp reduced SAT to 21 well-known problems from across science. By the trap in section 5, each of them is at least as hard as SAT. Since each is also in NP, each reduces back to SAT. They are all NP-complete, and the list now runs to thousands.
Each line is a quick rewrite that works in both directions.Suppose someone finds a fast method for Tetris.A rewrite carries it to SAT.From SAT, rewrites carry it to every other problem.They all fall together. That would be P = NP.
NP-complete: the problem is in NP, and every problem in NP reduces to it. Nothing in NP is harder.
The same problem in disguise
| Where it turns up | The question |
|---|---|
| Delivery routes | Is there a route through all 50 stops under 300 miles? |
| Airline scheduling | Can these crews cover these flights within the rest rules? |
| Seating charts | Can everyone be placed with no clashes? |
| Packing | Do these boxes fit into three lorries? |
| Sudoku | Does this grid have a solution? (For grids of any size.) |
| Tetris | Given the list of pieces in advance, can you clear the board? |
| Protein folding | In simplified models, finding the lowest-energy shape is at least this hard. |
A fast algorithm for any one of these would be a fast algorithm for all of them, and for everything else in NP. Crack Tetris and you have cracked airline scheduling. This is also the best evidence for P ≠ NP: thousands of able people have attacked thousands of versions of one problem for fifty years, and all have failed.
NP-complete vs NP-hard
- NP-hard: at least as hard as everything in NP. It may be far harder, and its answers may not be quick to check.
- NP-complete: NP-hard and inside NP. The hardest problems that still have a receipt.
"Is there a route under 300 miles?" is NP-complete. Show me the route and I add up the miles. "What is the shortest possible route?" is NP-hard and not known to be in NP. A claim that a route is the shortest is a "no shorter one exists" claim, and section 3 showed that "no" has no receipt.
NP-complete does not mean "impossible in practice". It describes the worst cases as size grows. Delivery firms route thousands of stops daily with methods that find very good answers, without a guarantee of the best. Hard in the worst case and hard on a typical day are different. Section 8 depends on this.
P: problems that are quick to solve.NP: quick to check. P sits inside it.The hardest of NP sit at its edge. Harder problems lie beyond.Factoring and the discrete logarithm sit in the middle: not known to be easy, not among the hardest.A quantum computer reaches all of P, plus those two.
7. What quantum computers actually add
A quantum computer is not a faster computer. It can make wrong answers cancel each other out, and that only works on problems with a hidden regular pattern.
An ordinary computer stores bits, each a 0 or a 1. A quantum computer stores qubits. A group of qubits can hold a blend of every possible combination of 0s and 1s at once.
"It tries every answer at the same time." When you read a quantum computer, the blend collapses and you get one answer at random. If that were all, it would be a very expensive dice roll.
The one new ingredient: amounts that can be negative
In ordinary life, chances only add. If two different routes lead to the same outcome, that outcome becomes more likely. Nothing can make it less likely.
In quantum physics each route carries an amount that can be positive or negative. The chance of an outcome comes from the total. So two routes to the same outcome can carry +½ and −½ and cancel to nothing. Water waves do the same: a crest meeting a trough leaves flat water.
One route to an answer is one wave. Its height sets the chance of seeing that answer.A second route arrives. On the left it is out of step. On the right it is in step.Out of step, crest fills trough and nothing is left. In step, the wave doubles.
Now do that for every possible answer at once. The machine starts with all answers equally likely and steers:
Start: every answer is equally likely. Read now and you get a random one.Arrange the routes so the wrong answers cancel a little......and again. What they lose goes to the right answer.Now read. You almost certainly get the right answer.
The catch: you must arrange this cancelling without knowing the answer. That is only possible when the problem has a regular pattern that lines the waves up for you. Most problems offer none.
| Kind of problem | Quantum advantage | Status |
|---|---|---|
| Hidden repeating pattern, such as factoring | Enormous. Exponential becomes polynomial. | Proven |
| Blind search, such as trying every key | Modest. A trillion items take about a million steps. Still exponential, and no quantum method can do better. | Proven |
| NP-complete problems | Nothing beyond the modest search speed-up. | Believed |
BQP: the problems a quantum computer solves in polynomial time, with a small allowed chance of error. It contains all of P and it contains factoring. It is believed not to contain the NP-complete problems.
So "can a quantum computer do it?" and "does P equal NP?" are separate questions. Quantum computing draws a new line across the map, and that line runs through the two problems we chose for cryptography.
8. How all this guards the internet
Encryption sets attackers a problem that is quick to check and, we hope, slow to solve. Nobody has proved the problems we chose are slow to solve.
The puzzle encryption had to solve
You want to send your card number to a shop you have never dealt with. To scramble it, you and the shop need a shared secret key. How do you agree on a secret over a line that anyone can listen to?
Here is the idea with paint. Mixing two paints is easy. Un-mixing them is not.
Alice and Bob each choose a secret colour. Yellow is public.Each mixes their secret into yellow.They swap the mixtures in the open. A listener sees both.Each adds their own secret to the mixture that arrived.Both now hold red + blue + yellow: the same colour. The listener cannot un-mix what they saw to make it.
Real systems replace paint with arithmetic that is easy to do and hard to undo: a one-way street. Two are in wide use.
One-way street 1: multiplying primes (RSA)
Multiply two primes: easy. Given only the result, find the two primes: that is factoring, and no shortcut is known.
The obvious method is to try dividing by 2, 3, 5 and so on. Recall from section 1 that the size of a number is its count of digits. Each extra digit multiplies the number of candidates to try by about three. RSA keys have 617 digits. Trying divisors would take about 10³⁰⁸ attempts, a 1 followed by 308 zeros. Cleverer methods exist and cut that enormously, but the best one known still takes far longer than the age of the universe.
RSA, published in 1977, adds a trapdoor: a one-way street with a secret way back. Anyone can scramble a message using the product of the primes. Unscrambling needs a number that can only be worked out from the primes themselves. The product is the public key, an open padlock you hand to everyone. The primes are the private key.
See RSA work with tiny numbers
Set-up. Pick primes 3 and 11. Publish their product, 33, and the number 3. Keep secret the number 7, which can only be worked out by someone who knows 3 and 11.
Lock. To send the message 4, multiply it by itself 3 times: 4 × 4 × 4 = 64. Subtract 33 until you are below 33: you get 31. Send 31.
Unlock. The owner multiplies 31 by itself 7 times and again strips out 33s. The result is 4, the original message.
Attack. A listener knows 33, 3 and 31. To find the secret 7 they must split 33 into 3 × 11. That is easy for 33 and, as far as anyone knows, infeasible for 617 digits.
One-way street 2: clock arithmetic (elliptic curves)
Take a clock with 17 hours. Start at 1 and keep multiplying by 3, wrapping round the clock each time. You land on 3, 9, 10, 13, 5, 15, 11 and so on, hopping about with no visible order.
A 17-hour clock. Start at 1, the green dot.Multiply by 3: land on 3.Times 3 again: 9.9 × 3 = 27. Past 17, so wrap round: 27 − 17 = 10.Then 13, 5, 15, 11. The hops follow no visible order.Forwards is easy. Backwards ("I am on 11, how many hops was that?") has no known shortcut.
Forwards is easy: after 4 steps you are on 13. Backwards is hard: "I am on 13, how many steps was that?" On a clock with an astronomical number of hours, no shortcut is known. This backwards question is the discrete logarithm. It is the real version of un-mixing paint.
Elliptic-curve cryptography does the same hopping between points on a curve. It gives equal protection with much shorter keys, so it guards most web connections and messaging apps today.
What happens when you open a secure website
- Agree a key. Your browser and the site swap "mixtures" in the open and each works out the same secret key. This step uses the one-way streets.
- Prove identity. The site signs the exchange with its private key, so you know nobody sits in the middle.
- Scramble everything else. A fast ordinary cipher called AES uses the shared key for the rest of the visit.
Steps 1 and 2 are the fragile part. Break the one-way streets and the rest falls.
The uneasy middle ground
Place factoring and the discrete logarithm on the map from section 6.
- In NP. Hand me the two primes and I check them with one multiplication. Proven
- Not known to be in P. Fifty years of effort have found no shortcut. Believed hard
- Not believed to be NP-complete. Nobody has managed to rewrite SAT as factoring, and there are solid technical reasons to think nobody will. Believed
The third point cuts deep. NP-complete problems share an "all for one" shield: thousands would have to fall together. Factoring stands alone. One clever idea could break it tomorrow and disturb nothing else in mathematics.
Why not build locks from an NP-complete problem instead? It was tried, and the systems were broken. NP-complete means hard in the worst case. A lock needs every key to be hard to pick, and needs a trapdoor for the owner. Factoring's extra structure supplies both. The same structure is what makes it suspicious.
The unsettling conclusion
- Your data is safe if factoring and discrete logarithms are hard.
- They can be hard only if P ≠ NP. If P = NP, both become easy at once.
- P ≠ NP is unproven.
- Even a proof of P ≠ NP would not be enough. It would show that the hardest problems in NP have no shortcut. These two are not among the hardest.
So the world's banking, medical records and private messages rest on this statement: many able people have tried to do this quickly for a long time, and failed. That is an assumption, not a theorem. It can fail in two independent ways.
Someone finds a shortcut for factoring on ordinary computers, as happened for primes in 2002. Nothing rules it out. Most experts think it unlikely.
The shortcut already exists on paper. It awaits a machine big enough to run it.
9. The quantum threat, and what is being done
In 1994 Peter Shor showed that a large quantum computer would factor numbers and solve discrete logarithms quickly. That breaks RSA and elliptic curves together. Proven
Shor's algorithm, by hand
Shor used an old fact: factoring reduces to finding a rhythm. Here it is for the number 15.
Take a 15-hour clock. Start at 1 and keep doubling, wrapping round:
A 15-hour clock. Start at 1 and keep doubling.1, 2, 4, 8...8 doubled is 16. Wrap round: 16 − 15 = 1. Back at the start.It repeats every 4 steps. That beat is the period.
- The period is 4. Halve it: 2.
- Take two doublings from the start: you are on 4.
- Look one below and one above: 3 and 5.
- 3 × 5 = 15. Those are the factors.
This recipe works for any number, with a little extra school arithmetic. The only slow part is finding the period, which for a 617-digit number is far too long to find by stepping.
A period is a regular pattern, and section 7 said that is what quantum cancelling needs. A quantum computer holds a blend of all the steps at once and makes the waves cancel everywhere except at the beat. Factoring reduces to period-finding, and period-finding is quick on a quantum machine. It is a reduction, the tool from section 5, used as a weapon.
How close is it?
| Year of estimate | Physical qubits needed to break a 2,048-bit RSA key |
|---|---|
| 2019 | About 20 million |
| 2025 | Under 1 million |
| 2026 | Reported designs claim under 100,000, some far fewer, on optimistic hardware assumptions |
Qubits are fragile, so many physical qubits must work together to make one reliable "logical" qubit. The attack needs over a thousand logical qubits. Reports from 2026 put the best demonstrated machines at a handful. Estimates from 2026 also suggest elliptic curves would fall before RSA. No serious estimate names a date. Unknown
Harvest now, decrypt later
An adversary can record encrypted traffic today and keep it. It is unreadable now. On the day a large enough quantum computer exists, the archive opens. So the deadline depends on how long your secret must last:
Your secret must stay secret for this long......and moving to new locks takes this long.A large quantum computer is this far away.Anything that must still be secret past this line can be read from old recordings.
A card number that expires in three years is fine. Medical records, diplomatic cables and the names of informants are not. This is why governments are moving before any such machine exists.
Post-quantum cryptography
The fix needs no quantum hardware. Post-quantum cryptography is ordinary software built on different one-way streets, with no pattern that quantum cancelling is known to exploit. The leading family uses lattice problems: finding the nearest point in a grid with hundreds of dimensions.
- 2016: the US standards body NIST opens a public competition.
- August 2024: NIST publishes the first three finished standards.
- Now: major browsers and messaging apps already use the new schemes alongside the old, so an attacker must break both.
- Ahead: NIST's plan deprecates RSA and elliptic curves after 2030 and bans them after 2035 for US government use.
The new schemes stand on the same kind of footing: problems believed hard. One finalist in the NIST competition survived years of expert scrutiny, then fell in 2022 to an ordinary computer in about an hour. We have swapped one assumption for a sturdier-looking one. We have not escaped assumptions.
One relief: AES, the fast cipher from step 3 of the website visit, is barely touched. Quantum computers get only the modest search speed-up against it, and longer keys cancel that out.
10. What if P = NP were proved true?
It depends on the proof. A practical fast algorithm would remake the world. A purely theoretical one might change nothing day to day.
Perfect logistics. Best possible schedules, routes, chip layouts and power grids.
Automated discovery. Proofs are quick to check, so they become quick to find. So does the simplest theory that fits a set of data.
Design on demand. Drugs and materials specified by what they must do.
Every padlock opens. RSA, elliptic curves and the post-quantum schemes all fall. All their one-way streets live inside NP.
No digital trust. Online banking, software updates and digital signatures lose their footing.
What survives: the one-time pad, in section 12.
If P = NP, then the world would be a profoundly different place than we usually assume it to be. There would be no special value in "creative leaps", no fundamental gap between solving a problem and recognising the solution once it's found. Scott Aaronson, computer scientist
Two cautions. A proof might show that a fast algorithm exists without revealing it. And "polynomial" covers a lot: an algorithm taking n¹⁰⁰ steps is fast on paper and useless in practice. The science-fiction version needs a usable algorithm. Most experts expect neither.
11. The people and the turning points
- 1936Alan Turing defines what a computer is, on paper, before one exists. He proves some problems cannot be solved by any machine at all.
- 1956Kurt Gödel writes to the dying John von Neumann and asks, in effect, whether finding proofs could be as easy as checking them. It is the P vs NP question, fifteen years early. The letter lay unnoticed for decades.
- 1965Alan Cobham and Jack Edmonds propose polynomial time as the definition of a feasible computation.
- 1971Stephen Cook in Toronto proves that SAT captures all of NP. A year earlier, Berkeley had denied him tenure.
- 1972Richard Karp shows 21 well-known problems are all equally hard. The scale of the thing becomes clear.
- 1973Leonid Levin publishes the same discovery as Cook, made independently in the Soviet Union behind the Cold War divide. The result carries both names: the Cook-Levin theorem.
- 1973–77Public-key cryptography is invented twice. Clifford Cocks and colleagues at GCHQ in Britain find it first, and it stays classified until 1997. Diffie and Hellman (1976) and Rivest, Shamir and Adleman (RSA, 1977) find it openly.
- 1981Richard Feynman notes that ordinary computers struggle to simulate quantum physics, and suggests building computers from quantum parts.
- 1994Peter Shor at Bell Labs finds his factoring algorithm. Quantum computing turns from a curiosity into a matter of national security.
- 2000The Clay Institute puts a million dollars on P vs NP.
- 2024The first post-quantum standards are published. The migration begins.
12. Five side roads
Each of these sharpens one idea from the main path.
A cipher with a real proof: the one-time pad
One cipher is proven unbreakable, even against unlimited computing power and even if P = NP. Proven Give both sides a random key as long as the message and use it once. The scrambled text then fits every possible message equally well, so it tells an attacker nothing. The cost: you must deliver that key in secret beforehand, which is the very problem public-key cryptography was invented to avoid. We traded a theorem for convenience.
Proving you know a secret without showing it
Your friend is colour-blind and holds a red ball and a green ball that look identical to them. They hide the balls behind their back, swap them or not, and show you again. You say whether they swapped. Get it right twenty times and they are convinced the balls differ, yet they still do not know which is red. This is a zero-knowledge proof. Every NP problem has one: you can prove you hold a sudoku solution without revealing a single digit. Given one-way streets exist
Bitcoin mining: hard to find, easy to check, for money
Miners race to find a number that, fed through a scrambling function, gives a result starting with many zeros. No shortcut is known, so they guess, trillions of times a second. Anyone can check a winning number with one calculation. The whole system is the gap from section 3, turned into a lottery.
Five possible worlds
In 1995 Russell Impagliazzo listed the worlds we might live in. Cryptography needs more than P ≠ NP: it needs problems that are hard on a typical day, with trapdoors.
| World | What is true there | Encryption |
|---|---|---|
| Algorithmica | P = NP | Only the one-time pad |
| Heuristica | NP problems are hard only in rare worst cases | None that lasts |
| Pessiland | Typical cases are hard, but no one-way streets exist | None. The worst of both. |
| Minicrypt | One-way streets exist, trapdoors do not | Shared-key ciphers only |
| Cryptomania | Trapdoors exist | Everything we use today |
We behave as if we live in Cryptomania. Believed Nobody has proved we are not in any of the other four.
Problems no computer can ever solve
NP-hard is not the top of the ladder. Turing proved in 1936 that no program can examine any other program and always say correctly whether it will finish or run forever. Proven The reason is a trap: feed such a checker a program built to do the opposite of whatever the checker predicts about it. So the full ladder runs: quick to solve, quick to check, hard beyond checking, and impossible with any amount of time.
13. Why the internet still works fine today
The risk is real and long-term. It is not a present emergency, and the migration is under way.
- Ordinary attacks are nowhere near. The largest RSA-style number publicly factored has about 270 digits (896 bits), reported in September 2026. Standard keys have 617 digits (2,048 bits). By standard estimates that gap is many billions of times more work.
- The assumption has a long record. Factoring has been attacked at full force since 1977. Fifty years of failure by motivated experts is evidence, though not proof.
- The quantum machine does not exist yet. Today's devices are orders of magnitude too small and too error-prone.
- The replacement is rolling out. A large share of web traffic already uses post-quantum key exchange alongside the old kind.
- Most breaches ignore the mathematics. Attackers steal passwords, trick staff and exploit software bugs. Nobody breaks a steel door when the window is open.
Worth real concern: secrets that must last decades, the slow pace of upgrading old systems, and the standing chance of a surprise. Not worth concern: headlines claiming a quantum computer "has broken encryption". As of today, none has.
Known, believed, unknown
| Claim | Status |
|---|---|
| Every problem in P is in NP | Proven |
| All NP-complete problems stand or fall together | Proven |
| A large quantum computer breaks RSA and elliptic curves | Proven |
| Quantum computers gain only a modest speed-up on blind search | Proven |
| The one-time pad cannot be broken | Proven |
| P ≠ NP | Believed |
| Factoring and discrete logarithms are hard for ordinary computers | Believed |
| Factoring is not NP-complete | Believed |
| Quantum computers cannot solve NP-complete problems quickly | Believed |
| Post-quantum schemes resist both kinds of computer | Believed |
| When a quantum computer big enough to break RSA will exist | Unknown |
| Whether any "believed" row will ever be proved | Unknown |
The whole argument in six lines
- Problems get hard when choices multiply and no shortcut is known.
- P is "quick to solve". NP is "quick to check". Whether they differ is the great open question.
- Reductions rewrite problems as each other and rank them by difficulty.
- The NP-complete problems are the hardest in NP, and are one problem in disguise.
- Quantum computers do not crack those. They crack problems with a hidden rhythm, including the two we built encryption on.
- So the internet is locked with an educated bet, and we are changing the locks for a better bet.