A trapdoor function is a mathematical function that anyone can compute easily in one direction, but that is practically impossible to reverse unless one knows an extra secret value, the trapdoor. With the trapdoor, inversion becomes easy. This sets it apart from a plain one-way function, such as a cryptographic hash function, which is meant to be hard to reverse for everyone.
Trapdoor functions are the foundation of public-key cryptography. In RSA, multiplying two large primes is easy, but recovering them from the product is believed to be infeasible; knowing the primes is the trapdoor that allows decryption and signing. The public key lets anyone encrypt or verify, while the private key holds the trapdoor. The security of such schemes rests on assumptions about hard problems, which is why large quantum computers are seen as a long-term threat to RSA and to some digital signature schemes.
Ref 1300000362