Exercise 1: sample answer Keyword BAD = shifts 1, 0, 3, repeating. Message letters: RETREATATMIDNIGHT. (a) R+1=S, E+0=E, T+3=W, R+1=S, E+0=E, A+3=D, T+1=U, A+0=A, T+3=W, M+1=N, I+0=I, D+3=G, N+1=O, I+0=I, G+3=J, H+1=I, T+0=T. Cipher text: SEWSEDU AW NIGOIJIT (b) The two Rs (letters 1 and 4) both became S, and the two Es (letters 2 and 5) both became E. The keyword has three letters, so letters three places apart meet the same keyword letter and keep matching. Repeats like this are what the Kasiski examination looks for.