25
submitted 21 hours ago by lena@gregtech.eu to c/askscience@lemmy.world

Wouldn't that mean cryptography would be impossible?

A lot of things in the modern world seem to be based on the assumption that P≠NP, so what else would break? What would be made possible or improved by P=NP?

top 14 comments
sorted by: hot top new old
[-] theneverfox@pawb.social 2 points 7 hours ago

A lot of really useful problems become solvable, and encryption would need to change a lot

We'd probably have to do more physical security, we can do stuff to avoid point to point interception and we could use still use cryptography, but instead of it mathematically proved security it would be just another layer of defense. We'd probably have to get rid of remote access for anything important

But p=np is a class of problems, it's not one code to be cracked. If one is solved we can still use unsolved ones for our cryptography needs

So realistically it would probably be a lot of chaos and anything sensitive on the Internet would have to go down until a new system of trust can be rolled out... It could become an arms race (it already is, but so far it's been slow enough we could stay ahead of it for the most part)

Or maybe everyone loses their minds and we go full cyberpunk 2077 style

[-] hendrik@palaver.p3x.de 16 points 20 hours ago* (last edited 20 hours ago)

As far as I know that breaks asymmetric crypto. It's not the only form of cryptography, we also have symmetric crypto. But you'd have to find some way to transfer the keys, do handshakes and signatures...

I'd say it'd lead to drastic changes. Like we'd need to revert to paper money. And snail mail for important documents.

[-] Thorry@feddit.org 13 points 18 hours ago

This is not true. It only shows there is in principle a way to get for example the factors of a number within polynomial time. This does not mean we now suddenly know how to actually do that. Just that a way exists in principle. Also polynomial time doesn't need to mean fast or cheap in terms of compute. Just that the amount of compute needed is known beforehand. It could still be very expensive, more expensive than it would be worth. And with certificates having shorter and shorter lifespans, it would get harder and harder to get the key in time.

From a maths point of view it would be mind blowing. And it could mean some forms of asymmetrical encryption could be less effective, this isn't by definition the case.

[-] birdwing@lemmy.blahaj.zone 2 points 18 hours ago

Correction, "tech bros" will be using paper while forcing everyone to go digital to be vulnerable.

Rules for thee (proletarians) but not for me (oligarch)

[-] PetDinosaurs@lemmy.world 5 points 16 hours ago* (last edited 16 hours ago)

Nothing happens if P=NP except for some science. (Good science, imo. Edit: maybe math? Close enough.)

I'd suspect that it would teach us something, but I don't suspect that easy solutions to hard problems immediately become obvious.

A solution that is O(N^1000) is still equally intractable for most human sized problems.

[-] A_A@lemmy.world 11 points 20 hours ago

Then it would imply that N = 1

[-] BA834024112@lemmy.world 4 points 17 hours ago
[-] Deconceptualist@leminal.space 1 points 13 hours ago* (last edited 13 hours ago)

Right so technically there are two answers (I wouldn't feel right calling the latter a 'solution'): Either N=1 or N is indeterminate

[-] Lumidaub@feddit.org 3 points 16 hours ago

I have no idea how any of this works, maths has always gone way over my head, but this sounds so funny to me. Imagine if someone made a new discovery in medicine and suddenly aspirin just doesn't work anymore.

[-] Deconceptualist@leminal.space 4 points 13 hours ago* (last edited 13 hours ago)

So, um... hate to break it to you but that has actually kind of happened.

https://youtu.be/ksn5yrsC3Wg

Shorter vid from the ACS:

https://youtu.be/PccOwGEbtQU

(Tons of sources in that video description)

[-] Lumidaub@feddit.org 2 points 13 hours ago

That is very scarinteresting, thank you for that, but in my scenario there'd be no form 2, still the exact same drug in every aspect, just no effect.

[-] Deconceptualist@leminal.space 1 points 12 hours ago* (last edited 12 hours ago)

At the end of that first video is a scientist who discovered the first polymorph of aspirin. It might genuinely do nothing phamacological (unlike to the familiar drug), I don't actually know. If that's the case and it took over, it would be exactly the scenario you propose.

[-] OneCardboardBox@lemmy.sdf.org 2 points 20 hours ago* (last edited 20 hours ago)

There is plenty of cryptography which would not be broken, like certain symmetric cryptography.

I think the big implication would be philosophical: You'd get a bunch of AI bros trying to prove that writing a good song is P hard and identifying a song as good is NP hard just so they can mathematically justify slopping out music with a few keystrokes and saying that the two are now indistinguishable.

[-] stoly@lemmy.world 1 points 18 hours ago

This is both fairly horrifying and really funny.

this post was submitted on 30 Nov 2026
25 points (93.1% liked)

Ask Science

18510 readers
132 users here now

Ask a science question, get a science answer.


Community Rules


Rule 1: Be respectful and inclusive.Treat others with respect, and maintain a positive atmosphere.


Rule 2: No harassment, hate speech, bigotry, or trolling.Avoid any form of harassment, hate speech, bigotry, or offensive behavior.


Rule 3: Engage in constructive discussions.Contribute to meaningful and constructive discussions that enhance scientific understanding.


Rule 4: No AI-generated answers.Strictly prohibit the use of AI-generated answers. Providing answers generated by AI systems is not allowed and may result in a ban.


Rule 5: Follow guidelines and moderators' instructions.Adhere to community guidelines and comply with instructions given by moderators.


Rule 6: Use appropriate language and tone.Communicate using suitable language and maintain a professional and respectful tone.


Rule 7: Report violations.Report any violations of the community rules to the moderators for appropriate action.


Rule 8: Foster a continuous learning environment.Encourage a continuous learning environment where members can share knowledge and engage in scientific discussions.


Rule 9: Source required for answers.Provide credible sources for answers. Failure to include a source may result in the removal of the answer to ensure information reliability.


By adhering to these rules, we create a welcoming and informative environment where science-related questions receive accurate and credible answers. Thank you for your cooperation in making the Ask Science community a valuable resource for scientific knowledge.

We retain the discretion to modify the rules as we deem necessary.

For answers to historical questions, please check out our sister community: !askhistorians@lemmy.world


founded 3 years ago
MODERATORS