One way function
A one way function is a function which is "easy" to calculate but "hard" to invert — i.e, it is "hard" to calculate the input to the function given its output. One way functions are useful in cryptography for public key encyption and digital signatures.Formally, a one way function is a computable function f with the following properties:
- The computation of is tractable (which generally means that a polynomial algorithm for the computation is known, see complexity theory).
- The computation of the preimage of (denoted ), on a random x, is not tractable (i.e. no polynomial time algorithm exists) given only .
A trapdoor one way function or trapdoor permutation is a special kind of one way function. Such a function is hard to invert unless some secret information, called the trapdoor, is known. RSA is a well known example.
A cryptographic hash function is like a one way function except that it is not required to be bijective and has more stringent requirements for hardness of inversion.
References