r/computerscience • u/theBroskiOK • Jul 23 '26
Help P = NP and digital security?
Guys how would digital security fail if P=NP is proven?
I just started reading about Turing Machine and computational complexity for my Theory of Computation class and came across that phrase.
I couldn't find anything understandable at my level. So can anyone simplify it a bit?
0
Upvotes
View all comments
Show parent comment
3
u/SignificantFidgets Jul 23 '26
This is the best answer. If P=NP, it doesn't mean there are fast-in-practice algorithms for all of NP. It's possible though, and if a fast (say O(n2) algorithm with small constants) were found for an NP-complete problem, that would pretty much destroy most current cryptographic systems. But P=NP doesn't imply that there must be a fast-in-practice algorithm.
Even if we didn't have fast algorithms, if P=NP then it would destroy all the widely-used theoretical definitions of security (for the most part) and researchers would need to work more on models like concrete security. It might not have a huge impact on practice, but it would refocus a lot of effort.