Trapdoor one-way function

A function that is easy to compute but infeasible to invert without a secret, the trapdoor, which makes inversion easy. Public key encryption and signatures are built on such functions.

A one-way function is easy to compute in one direction and, as far as is known, infeasible to reverse. A trapdoor one-way function adds a secret: with that piece of information, reversing it becomes easy. Whitfield Diffie and Martin Hellman described the idea in their 1976 paper “New Directions in Cryptography”, and RSA, described the following year, became the best-known construction. In RSA anyone can raise a message to the public exponent modulo n, but recovering the message is believed to be infeasible without the trapdoor, which is knowledge of the prime factors of n and hence the private key.

This is what makes asymmetric encryption work: the public key lets anyone perform the easy direction, and only the holder of the private key can take the hard one. Not every one-way function has a trapdoor. A cryptographic hash is designed to be one-way for everyone, which is why hashing supports integrity rather than confidentiality. The word also has an unrelated software meaning, where a trapdoor is a hidden entry point, another name for a maintenance hook or backdoor.

Exam relevance: a scenario asking what property underpins public key cryptography is likely to point to trapdoor one-way functions. Candidates are expected to keep the cryptographic sense apart from the backdoor sense.