Cryptography is a way to transmit information and data so that only the intended recipient can access it. The message, content, or data is encrypted by the sender and then decrypted by the receiver using codes or other methods.