Cryptography is the study and practice of techniques for secure communication, allowing only the sender and intended recipient of a message to view its contents.