Cryptography is the science of writing and solving codes and ciphers. It involves encryption, decryption, and codebreaking.