2. Classical Cryptosystems

We start with some classical cryptosystems. It’s useful to group these into a few different types. To do this, let’s introduce some more terminology before getting started. An \(n\) -gram is a sequence of \(n\) letters: a 1-gram is just a single letter, a 2-gram (also called a bigram) is a pair of letters, and so forth. The encryption strategies we’ll encounter below are the following: