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 | |
|---|---|---|
| 1keys = 25 | A25 keys is a tiny number, and a computer can try them all in a blink, not years. | |
| 2keys = 2 ** 128 | Bfor shift in range(1, 26): | |
| 3A computer can try every Caesar shift in a split second | CA Caesar shift moves every letter the same amount, so letter patterns like common letters stay visible. | |
| 4Letter patterns remain in a Caesar cipher, so the most common letter in the ciphertext is probably E | DA Caesar cipher has only 25 possible keys, so there are very few shifts to try | |
| 5A Caesar cipher is strong because shifting hides every pattern | Emost_common = max(counts, key=counts.get) | |
| 6A computer needs years to try all 25 Caesar keys | FModern encryption can have trillions upon trillions of keys, far too many to try one by one |
Complete each line of code by filling in the missing parts.
Shade in the letter of the line that contains an error.
weak cipher — A cipher with few keys and letter patterns that show through, so a computer can break it fast. Modern encryption uses huge keys and complex steps. A Caesar cipher has only 25 keys.caesarKeys ← 25FOR shift ← 1 TO 25
DECRYPT(ciphertext, shift)keysTried ← 25
IF keysTried = 25 THEN
DISPLAY "Every key tried"counts ← COUNTLETTERS(ciphertext)
DISPLAY countsmodernKeys ← 2 ^ 256