Can someone say how proving P=NP will automatically allow us to crack RSA? Like if we have a public key, just by using the proof of P=NP, can we easily get the private key from it?
Is it even known that factorization is NP? Maybe some new efficient algorithm (like manually calculating a square root) pops up that just yields the largest prime factor of a number? Is that ruled out? That would break RSA without touching all the other P=NP stuff.
It wouldn’t. If P=NP then many problems we think are hard (ie currently require exponential time) would in fact be solvable in polynomial time. But such a polynomial time algorithm might be “galactic” in the sense that the constants are so astronomically large that in practice the algorithm would not be faster than current methods.<p>Note that this is not widely believed to be likely, because usually if a problem is in P, then usually further work can improve constants considerably, but it is a possibility that there is a certain class of problems in P that are “galacticly” polynomial.
Majority of respected professors of theoretical conputer science kind of know and assumes that p is not np. it's possible because not proven but it's extremely unlikely
I’m not qualified to answer this.<p>(Well my qualification is this – I took a semester of Theory of Computation class about a decade ago and barely managed to pass without screwing up my scholarship in the foreign country I was studying in. Today I write PHP during my day job..)<p>One way to try to get the private key is to try all possibilities. For an RSA key with 4096 bits, there are 2^4096 possible keys, which I’m told is greater than the number of atoms in the universe.<p>So you see, this is a O(2^n) operation. ie., the algorithm is “exponential”.<p>You’ll never finish checking all those combinations before the universe ends, or at least not before the Sun explodes and the Earth ceases to exist as we know it.<p>Unless you’re really really lucky and a key you try during your lifetime happens to be the actual private key. But the likelihood of that happening is practically zero because of the sheer number of possibilities.<p>The point is, you have to exhaustively check all possible keys. Exponential.<p>P=NP means there exists a polynomial time (O(n^k)) algorithm to find the private key. ie., it can be found relatively quickly.<p>This is all I know. I skipped a lot of details. Experts can chime in.
I like your explanation, but you merely said that a high number of possibilities means it takes a long high time to break it. This is true independently of whether such high number is obtained as an exponential (2^n) or a polynomial (k*n, with k very big).<p>I think it's more about growth: if we ever build a supercomputer that can break RSA in a reasonal time, we will bump that 4096 a bit to still be safe. In the case of exponential algorithm like 2^n, if you increase n by 1, you double the breaking time. In the other case you have to double n to get the same effect.<p>So, it's not about how hard it is to break it, it's about how fast can we make it harder.
Not claiming to be an expert, but you can game this by saying you can find a 4096-bit RSA key in O(1) time, because O(2^4096) is O(1). :P
Depending on the proof of P=NP and what you mean by "easily". In TCS, anything polynomial is considered "easily" so it could easily be the case that some ridiculous polynomial is implied with some ridiculous constants.<p>Suppose the proof of P=NP were not constructive, then Levin's universal search algorithm automatically gives us an algorithm that finds the factors in polynomial time. This would satisfy some definition of "easily" from above. However, if you take a look at Levin's universal search, it quickly becomes apparent the constants involved are truly galactic and not worth even thinking about in a practical sense.<p>If the proof of P=NP were constructive but gave some incredibly high degree polynomial or something with incredibly high constants, then we might be more wary. We would be able to get factors in polynomial time but it would still be "hard" in a practical sense to get the private key but it becomes exceedingly difficult to guarantee that there isn't some practically efficient algorithm. Proving fine grained lower bounds like this has been difficult to say the least.<p>If the proof of P=NP were constructive and efficient, then we would easily be able to get the private key. There is some additional detail here about what NP complete problem was actually solved (and thus how much the polynomial reduction cost but this is typically small) but this is a bit detailed and unclear. We would also probably begin searching for a directly efficient factoring algorithm.
> if we have a public key, just by using the proof of P=NP, can we easily get the private key from it?<p>There's a couple more steps, but since we have AI, I wouldn't say it would be <i>easy</i> per se, but it goes from being actually impossible to "okay, maybe with a lot of effort". Right now, it's impossible for anybody to snoop or alter the TLS connection to my bank that's encrypted with a 4k RSA key. To go from impossible to "maybe the CIA/NSA if they really cared" would be world changing. Nevermind that me talking to my bank is not that interesting to them, the mere possibility upends a lot of assumptions about the world that computer people have.<p>It wouldn't be automatic, but a CIA agent with access to Claude and enough tokens could then do it.
Depends on if the proof is constructive or non-constructive.<p>If the proof is constructive, it'll say "here's an algorithm you can use"<p>If the proof is non-constructive, it'll say "It's not possible for there not to be an algorithm you can use" and... that doesn't really help you find the algorithm
If the proof is non-constructive, but still a verified proof, would that change the attention on and investment into breaking these algorithms?<p>Or is there already such an astronomically large incentive (stealing the world’s data, btc, etc.) that reasonably not much would change?
Proving P=NP is theoretical, for starters. It would be an important finding, but it wouldn't immediately break RSA encryption.
One NP problem can be transformed into another... if you can solve an NP problem, you can solve all NP problems. It's generally trivial to prove that a particular problem is NP, and many classes of problems have been proven to be NP. P problems can be solved in non-exponential time. That is, if you're cracking some crypto and the crypto were P instead of NP, it wouldn't take you 10 billion years or a Matrioshka brain to do it. Crypto is NP by design. Because, for now, we think NP != P. And if we were wrong about that...
> That is, if you're cracking some crypto and the crypto were P instead of NP, it wouldn't take you 10 billion years or a Matrioshka brain to do it.<p>How hard could a P crypto be? If not 10bn years, could it be 1000 years? 100? 10?<p>A crypto algorithm that we believe would last 50 years when accounting for Moore’s law growth of compute seems pretty alright for many things. Not everything and maybe not even most things. But many things.