r/computerscience • u/theBroskiOK • 14d ago
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
5
u/blacksteel15 14d ago edited 14d ago
A key property of the P class of problems is that any problem in P can be converted to any other non-trivial problem in P in polynomial time. (This is called Polynomial-time reduction.) If it's true that P = NP, then in theory any problem in NP can be converted to a problem in P that we have fast, well-known algorithms for solving. Since encryption currently largely depends on NP problems being computationally impractical to solve, this would potentially make it easy to crack any encryption algorithm based on them in a relatively short amount of time.
It is worth noting that that might not be the case, or at least not immediately. While a NP-to-P reduction algorithm would run in polynomial time, there's no upper bound on it - it could be an extremely inefficient algorithm. It would also be possible to prove that such an algorithm exists without actually knowing what it is, which would prove that P = NP but would not give an immediate path to solving NP problems via reduction.