Tip: Choose Save as PDF in the print dialog to download. Use A4 paper size.
Shade in the A or B circle for each question.
Draw a line connecting each item on the left to its match on the right.
| Left column | Right column | |
|---|---|---|
| 1K shifted back 3 = H | Aplain = (cipher - key) mod 26 | |
| 2B shifted back 3 = Y | BKHOOR with key 5 = FCJJM (nonsense) | |
| 3To decrypt, subtract the key from each letter's position and wrap around the 26 letters | CWrapping from A back to Z: B goes back to A, then Z, then Y. | |
| 4Check that the result is a real message, because a wrong key gives nonsense | DDecrypting: move the ciphertext letter K three places back along the alphabet to get the plaintext letter H. | |
| 5KHOOR with key 3 -> NKRRU | EThe shift did not wrap around. Going back 1 from A wraps to Z. | |
| 6A shifted back 1 -> no letter, stop | FThe letters were moved forward by 3, which is how you encrypt. To decrypt, move each letter back by 3 to get HELLO. |
Complete each line of code by filling in the missing parts.
Shade in the letter of the line that contains an error.
shift back by key — To decrypt a Caesar ciphertext, move each letter back along the alphabet by the key number to get the plaintext. A wraps back to Z. Then check the result is a real message.plainNum ← cipherNum - keyplainNum ← (cipherNum - key) MOD 26FOR EACH letter IN ciphertext
pos ← position(letter) - keyIF plaintext is a real message THEN
OUTPUT plaintext
ELSE try another keynum = ord(letter) - 65
plain = (num - key) % 26