One way functions are easy to calculate the output from an input but are hard to reverse or calculate the input from the output. Examples of one way functions include prime factorization, discrete logarithm problems, and secure hash functions. Trapdoor functions are a special type of one way function that are easy to reverse if a secret piece of information called a trapdoor is known.