The Caesar cipher is a method of cryptography . It is named after Julius Caesar who used it to communicate with his army . The Caesar cipher is named after Julius Caesar , who , according to Suetonius , used it with a shift of three to protect messages of military significance .