Skip to content
All lessons8 min · Trainee Codebreaker

The Caesar Shift

The oldest cypher, and the first one you will break.

Introduction

Slide the whole alphabet along by a fixed number of places and you have a Caesar cypher, used two thousand years ago and still a perfect teaching machine.

Its weakness is arithmetic: there are only twenty-five useful keys, so a codebreaker can test all of them and read off the one that makes English.

Key ideaWith only 25 possible shifts, a Caesar cypher can simply be tried every way.