Cryptography is the science of secure communication. Plaintext refers to the original, unreadable message, while ciphertext is the encrypted, unreadable form. Keys and algorithms are essential in cryptography, enabling secure encryption and decryption. Chosen plaintext attack is a type of cryptographic attack that tests the strength of an encryption system.