#KryptosK4 #Lesson10: Rotors
Let’s have a look at this result (see attachment):
What you will notice is that if you used a shift of -11 you would get C?SK?? at the spot where you wanted to have BERLIN. In other words, just like are decoded we notice another shift. If we look at the position of BERLIN, then it starts at position 64. Now if you look at the history of the ENIGMA machine, you will notice it used 3 or more rotors. It was also developed by the lesser known Dutch Marine officers Theo van Hengel and Rudolf Spengler back in 1915. During the second world war the Polish mathematician Marian Adam Rejewski broke this algorithm. Afterwards Bletchley Park used the information of Rejewski. Breaking ENIGMA was only possible by circumstances like using unsafe procedures during encryption, find codebooks and errors/mistakes done by operators. Rotor systems where heavily used in the previous century and it even was used by NATO. These rotors had a notch, so that other rotors could turn. This mechanism made it possible to have a polyalphabetic substitution encryption where each rotor on itself was a substitution encryption. One of the mistakes they made was believing that adding more rotors, made the encryption more secure. But that isn’t actually the case. Let’s look into the details. If you would start the right rotor (or the fast rotor) in a setting that it starts just after the notch, you have 25 positions that encrypt in the same manner. And then you will get random characters. In other words you can first crack 25 characters And then a new substitution is used because the middle rotor is turned. Now here we can have another 25 positions that encrypt somewhat different, before it changes again. It can be sooner too. And then the left rotor is turned. Again another 25 positions that encrypt in the same way possibly, or sooner. So if we started our right rotor right after the notch and the other 2 rotors are not just before the notch, then we most of the time the same encryption pattern: 25, 50, 75, 100, … But suppose your right rotor changed after 10 positions and again the other 2 aren’t yet near a notch then you have eg. a change after position 10, 35, 60, 85, … Now if those rotors also have a weak setting so that not only does it change very little, but also uses a weak substitution, then you can abuse another weakness. And just as with EAST NORTHEAST we noticed that there is only a minimal change required, after we did find the correct shift.
Also there is a special relation between NORTHEAST and BERLINCLOCK. If you look carefully you see that the P, the N, the K and the S enciphered letters are used in NORTHEAST. And just like the S was used in ARE DECODED, the P, the N and the K are used in BERLIN CLOCK. And there is even another bonus. The P and the N used in NORTH. Is reused in BERLIN! Not only did they use the P and the N, they also kept the distance between them the same! Let’s see this in action. The P was an R in noRth and that same P needs to become an R in beRlin, exactly 38 positions further! Now one can say, so? If 3 rotors were used, then with a distance of 38 and at least 60 characters we know that the third rotor must have been activated. Now we also know something else because of this. If rotor 2 and rotor 3 moved at the exact same moment, then you would get a certain shift. Suppose the third rotor is responsible for an overall shift of -10 and rotor 2 of -2 then the new shift is -12. Now if you would use a shift of -12 then things don’t add up. In other words, if 3 rotors were used, then they shifted separately! Meaning they are accountable for 2 different shifts. Eg. 1 of -1 and then afterwards 1 of -11. You now start to see that having C?SK?? isn’t as bad as you thought it was at all! So the total shift is -11 but somewhere we also have a shift of 1 making sure C?SK?? becomes B?RJ??. Whoops, did we miss something? So did he use ENIGMA and rotors? He definitely used something that works similar.
So again a mistake was made and we could figure out and understand better how this mechanism works. Let’s imagine a possible scenario: Rotor 2 starts with a letter that causes a shift of -1, you can rewrite this as +25 (in a 26 letter alphabet). It’s exactly the same. Now we move on and then the shift becomes + 1. The third rotor could be responsible for a big shift (eg. 10), whilst the second rotor is responsible for a small shift (eg. 2). So suppose that rotor 2 is causing a shift of +2 or -2 and rotor 3 is adding an additional shift of +9 or -9, we get a total shift of +11 or -11.
We are getting confident that we are looking at a (quasi-)nonperiodic polyalphabetic substition. You see we get more and more details and more and more confidence on what we are looking at. Enigma happens to have a non-periodic mechanism. Do we know others? Sure: Alberti, One Time Pad and Running Key Cipher. And as you can see now, the plot thickens. Maybe we can use the tabula recta, maybe we can use rotors too.
Now when playing with those alphabets...Suppose you inverted the alphabet. Can you reproduce it? In fact you can. Now your shifts need to be +1, -1 and then +15. I hope you understand why. Else have a play with it until you understand the why.
Coming back on the N and P again

. You should also notice a connection between both shifts. If you did what was asked in lesson 2, you would have noticed that the letters to form BERLIN where a bit too far. But both the N and the P work as a connection. So if you ended up 2 too far for the N you also would have spotted the connection with the P. In other words, suppose you used a certain shift and you noticed that for the B of Berlin you got eg. F. Then the R of Berlin has the same issue. If you ended up 2 too far, the R will end up 2 too far as well, as long as you don’t change the shift after the B of Berlin.
But we also mentioned the S. Why? Because the S of EAST translates to itself. Just like the K of CLOCK…
So bottom line, we aren’t going to use ENIGMA as implementation, but we are aware that the mechanism uses shifts.
So to better understand the soul of Kryptos K4, you need to decrypt more letters. Now in order to not spoil everything, you will notice I won’t provide too much details in the coming lessons.