Caesarcipher
The Caesar cipher is a simple substitution cipher in which each letter of the plaintext is shifted a fixed number of places down or up the alphabet. It is a monoalphabetic cipher, meaning each plaintext symbol maps to a single ciphertext symbol using a constant shift, called the key.
Historically attributed to Julius Caesar, it is often described as using a shift of three, though any
Mathematically, if A=0, B=1, ..., Z=25, the encryption is E(x) = (x + k) mod 26 and the decryption
An example with k = 3: the plaintext ATTACK AT DAWN becomes DWWDFN DW GDZQ. This illustrates both
Security and limitations: the Caesar cipher offers only 26 possible keys, making brute-force decryption trivial. It
Variants include ROT-n, where n is any fixed shift, and other fixed-shift schemes on different alphabets. The