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.

1 2 4 8 16

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.

Forty choices give a trillion outcomes. Three hundred give more than there are atoms in the observable universe.

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.

Polynomial growth

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.

Exponential growth

Steps grow like 2ⁿ. Adding one item doubles the work.

Example: a combination lock. One extra dial multiplies the combinations by ten.

010 2030 size of the input (n) 05001,000 2ⁿ: gone by n = 10 n² reaches 900

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.

At n = 30 the red line would sit a million times higher than this chart is tall.

Now in time, on a computer doing a billion steps a second:

Size nn² steps take2ⁿ steps take
30an instant1 second
50an instant13 days
100an instant40 trillion years
300an instanta 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.

Terms

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 knownSlow: none is known
Find the shortest route from A to BFind the shortest route that visits every town
Colour a map with 2 colours so neighbours differDo it with 3 colours
Plan a walk that crosses every bridge oncePlan a walk that visits every town once
Split people into compatible pairsSplit them into compatible groups of three
Decide whether a number is primeFind 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.

Finding

Fill in a blank sudoku.

Which two primes multiply to 2,021?

Seat 100 guests so no feuding pair shares a table.

Checking

Scan each row, column and box.

Multiply 43 by 47. You get 2,021.

Walk the tables with the list of feuds.

Checking 43 × 47 = 2,021 1 step Finding: which primes make 2,021? 2 3 5 7 11 13 17 19 23 29 31 37 41 43 14 tries

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.

The gap between the two halves is the subject of this whole page. It widens with every digit added.

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.

Common trap

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.

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.

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.

Maths Physics History Art Chemistry Monday: Maths, Art Tuesday: Physics, History Wednesday: Chemistry

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.

No line joins two dots of the same colour, so no student sits two exams at once. Physics, Art and Chemistry all clash with each other, so two slots could never work.

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

A puzzle of type A→ Rewrite itmust be quick→ A puzzle of type B→ Solver for Bgives A's answer

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.

Common trap

"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

Term

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:

Maths-Mon OR Maths-Tue OR Maths-Wed   every exam gets a day
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:

  1. A problem is in NP when a quick checking procedure exists for its answers.
  2. A quick procedure can be built as a computer circuit. Circuits are made of switches joined by AND, OR and NOT.
  3. 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.

SAT Sudoku Timetables Packing Tetris Routes Seating fast method found here

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.

Term

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 upThe question
Delivery routesIs there a route through all 50 stops under 300 miles?
Airline schedulingCan these crews cover these flights within the rest rules?
Seating chartsCan everyone be placed with no clashes?
PackingDo these boxes fit into three lorries?
SudokuDoes this grid have a solution? (For grids of any size.)
TetrisGiven the list of pieces in advance, can you clear the board?
Protein foldingIn 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

"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.

Common trap

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.

NP: quick to check NP-complete: SAT, sudoku NP-hard, beyond NP the shortest possible route BQP: quick on a quantum computer P quick to solvesorting Factoring Discrete log

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.

The picture most experts believe. None of the boundaries is proven. Factoring and the discrete logarithm sit in the middle: not known to be in P, not believed to be NP-complete, and inside the quantum region. The internet's locks are built from these 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.

The most common myth

"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.

A wrong answer The right answer + + = = they cancelthey add up

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.

A quantum algorithm arranges the routes so that those leading to wrong answers cancel and those leading to the right answer reinforce. Then a reading probably shows the right answer.

Now do that for every possible answer at once. The machine starts with all answers equally likely and steers:

eight possible answers; bar height = chance of reading it the right answer

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 machine never looks at the answers one by one. It reshapes the whole blend, then reads once. This picture leaves out the hard part: the steering.

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 problemQuantum advantageStatus
Hidden repeating pattern, such as factoringEnormous. Exponential becomes polynomial.Proven
Blind search, such as trying every keyModest. A trillion items take about a million steps. Still exponential, and no quantum method can do better.Proven
NP-complete problemsNothing beyond the modest search speed-up.Believed
Term

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.

AliceIn the openBob secret colourshared coloursecret colour red + yellowblue + yellow swap mixtures green + own redorange + own blue same colourthe shared secret key

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.

17 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16

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.

Real systems use a clock with more hours than there are atoms in the universe. The hops look just as scattered.

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

  1. 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.
  2. Prove identity. The site signs the exchange with its private key, so you know nobody sits in the middle.
  3. 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.

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

  1. Your data is safe if factoring and discrete logarithms are hard.
  2. They can be hard only if P ≠ NP. If P = NP, both become easy at once.
  3. P ≠ NP is unproven.
  4. 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.

Door 1: a clever ordinary algorithm

Someone finds a shortcut for factoring on ordinary computers, as happened for primes in 2002. Nothing rules it out. Most experts think it unlikely.

Door 2: a quantum computer

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:

1 2 4 8 1 2 4 8 1 2 4 8 period: 4 steps

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.

  1. The period is 4. Halve it: 2.
  2. Take two doublings from the start: you are on 4.
  3. Look one below and one above: 3 and 5.
  4. 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 estimatePhysical qubits needed to break a 2,048-bit RSA key
2019About 20 million
2025Under 1 million
2026Reported 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:

secret's lifetime time to upgrade time until the machine exists the machine arrives exposed

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.

If the secret's lifetime plus the time to upgrade runs past the machine's arrival, the data is exposed. For secrets that must last twenty years, the deadline may already have passed.

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.

The honest caveat

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.

The utopian side

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.

The catastrophic side

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

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.

WorldWhat is true thereEncryption
AlgorithmicaP = NPOnly the one-time pad
HeuristicaNP problems are hard only in rare worst casesNone that lasts
PessilandTypical cases are hard, but no one-way streets existNone. The worst of both.
MinicryptOne-way streets exist, trapdoors do notShared-key ciphers only
CryptomaniaTrapdoors existEverything 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.

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

ClaimStatus
Every problem in P is in NPProven
All NP-complete problems stand or fall togetherProven
A large quantum computer breaks RSA and elliptic curvesProven
Quantum computers gain only a modest speed-up on blind searchProven
The one-time pad cannot be brokenProven
P ≠ NPBelieved
Factoring and discrete logarithms are hard for ordinary computersBelieved
Factoring is not NP-completeBelieved
Quantum computers cannot solve NP-complete problems quicklyBelieved
Post-quantum schemes resist both kinds of computerBelieved
When a quantum computer big enough to break RSA will existUnknown
Whether any "believed" row will ever be provedUnknown

The whole argument in six lines

  1. Problems get hard when choices multiply and no shortcut is known.
  2. P is "quick to solve". NP is "quick to check". Whether they differ is the great open question.
  3. Reductions rewrite problems as each other and rank them by difficulty.
  4. The NP-complete problems are the hardest in NP, and are one problem in disguise.
  5. Quantum computers do not crack those. They crack problems with a hidden rhythm, including the two we built encryption on.
  6. So the internet is locked with an educated bet, and we are changing the locks for a better bet.