Cryptography is the process of encrypting and decrypting messages between senders and receivers to maintain integrity, secrecy and protect confidential information. It has a long history dating back to ancient Egypt and is now widely used with both symmetric and asymmetric encryption methods. While some countries have restrictions on cryptography, it is legal and commonly used to protect passwords, online transactions, and communication. When implemented properly, cryptography can securely protect data even if a system is compromised, as was seen when Adobe's encrypted data remained secure despite a data breach.