The Caesar cipher is a simple substitution cipher, which replaces each plaintext letter with a different letter of the alphabet. The cipher is named after Gaius Julius Caesar (100 BC – 44 BC), who used it for communication with his friends and allies.