Cryptography is the study of encryption principles and methods for transforming plaintext into ciphertext using an algorithm called a cipher and a key known only to the sender and receiver. Cryptanalysis is the study of deciphering ciphertext without knowing the key in order to recover the original plaintext. Cryptology encompasses both cryptography and cryptanalysis.