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 | |
|---|---|---|
| 1key_space = 25 | AA Caesar cipher has only 25 useful keys, not 100. That small key space makes it easy to brute force. | |
| 2for key in range(1, 26): | Bfor shift in range(1, 26): print(shift, decrypt(text, shift)) | |
| 3A small key space means an attacker can try every key (brute force) | CTries every possible Caesar key one after the other | |
| 4A bigger key space is stronger because there are far more keys to try | Dkeys = 2 ** 128 | |
| 5A Caesar cipher has 100 keys, so it is hard to brute force. | EA Caesar cipher has 25 useful keys, so its key space is small | |
| 6Fewer keys make a cipher stronger because there is less to guess. | FIt is the other way round. Fewer keys means a smaller key space, which is easier for an attacker to try in full. |
Complete each line of code by filling in the missing parts.
Shade in the letter of the line that contains an error.
key space — The total number of different keys a cipher allows. A Caesar cipher has only 25 useful keys, so an attacker can try them all. More keys means a bigger key space and a stronger cipher.keys = 26 - 1for key in range(1, 26):
print(key)keyspace = 25
print(keyspace)for key in range(1, 26):
print(decrypt(msg, key))keysA = 25
keysB = 2 ** 128
stronger = keysB > keysA