What are the two basic functions used in encryption algorithms?

What are the two basic functions used in encryption algorithms?