For example, you can assume part of the plaintext (like a header in transmission) and solve an equation (which can be restated as a SAT instance) that yields you a key assuming certain cryptographic algorithm was used. So pretty much all cryptography relies on P!=NP.
https://cs.stackexchange.com/questions/6650/how-can-p-np-enh...
It can be reduced already, but then 3-sat can be solved in P time
But don't worry, if that happens the world would be so different there might no longer be a need for cryptography.