Algorithm Details for: Permute through All Shifts
- Split text into rows of the same length as the key.
- For each column, determine the frequencies of each letter.
- Take the dot product of the column frequencies with
every possible shift of the standard English alphabet frequencies.
- The largest value is the most likely shift.
- Repeat the process on the next column.
Alogorithm taken from Trappe and Washington pg 22 - 23 (see sources page).