Encryption works by using a key to encode and decode messages. There are two main types of encryption: symmetric encryption, which uses the same key for both encryption and decryption, and asymmetric encryption, which uses a pair of keys (public and private) for the process. The choice of encryption method depends on the specific needs and resources of the business.