Cryptography is the practice of using complex mathematical algorithms to encrypt and decrypt data. It is used to protect sensitive information from unauthorized access and to ensure its integrity. For example, when you make a purchase online, the information you provide is encrypted using secure socket layer (SSL) technology, which helps to protect your personal information during the transaction.