Press enter after choosing selection

Secret Codes #10

Remember Caesar cipher (way back in Secret Codes #6)? That cipher can be broken just by trying all possible combinations. And since there are only 26 possible encodings, it's not very secure. And we could also break a Caesar cipher by looking at frequency analysis (as in Secret Codes #8).

But what if every letter of a message had its own Caesar cipher? So 2 letters that are the same in the original come out as different letters in the ciphertext. Now there are... well, a LOT more possible encodings and it's getting a lot harder to crack the code!

Here's an example of how to use this technique called the Vigenère cipher. The message you want to encode (called the "plaintext") is "Burn all documents". The key is "watermelon". Since the key is shorter than the original, just repeat the letters to make it the same length as the plaintext. Cross reference the first letter in the plaintext ("B") with the first letter in the key ("W") and that gives the first letter in the ciphertext ("X"). See the graph below.

Vigenere cipher table

Decipher in the reverse order. If you know the key, use the column of each letter in the key to find the letter in the ciphertext. The row of that letter is the plaintext letter. Starting with the column of the first letter of the key ("W"), look for the first letter of the ciphertext ("X"). That corresponds to the row "B".

This badge has been awarded to 305 players

Sign in to see clues and check your progress on this badge

Comments

Each letter of the key (WALRUS) corresponds to a different letter of the message (OOQKMZALWTLSXS). Start with the first letter of the key (W). Look down the W column (labeled in red) until you find the first letter of the enciphered message (O). What row is it in? The S row. So the first letter of the game code is S! Keep going for each letter. If you run out of letters in the key because the ciphertext is longer (it is!), just keep repeating the key just like in the example above. Good luck!

Game
SummerGame2021

Difficulty
★★★☆ 3 of out 4 difficulty

Badge Points
100

Back to play.aadl.org