The Caesar cipher is a substitution cipher that shifts each letter in the selected alphabet by a fixed number of positions. For example, with a shift of 3, A becomes D, B becomes E, and C becomes F.
Encryption moves letters forward through the alphabet, while decryption moves them backward by the same shift value. Spaces, numbers, and punctuation are usually preserved unchanged.
Because the method is simple and predictable, it is often used to introduce the basic ideas of classical cryptography: plaintext, ciphertext, keys, encryption, and decryption.