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 | |
|---|---|---|
| 1plain: ABCDEFGHIJKLMNOPQRSTUVWXYZ key: QWERTYUIOPASDFGHJKLZXCVBNM | Akey: QWERTYUIOPASDFGHJKLZXCVBNM plain: ABCDEFGHIJKLMNOPQRSTUVWXYZ Q -> A | |
| 226! = 403291461126605635584000000 | BThe number of possible keys in a substitution cipher, because there are 26 choices for the first letter, 25 for the next, and so on. | |
| 3A keyword alphabet starts the scrambled alphabet with a keyword (repeated letters removed), then adds the remaining letters in order. | CA substitution key table: the top row is the normal alphabet and the bottom row is the scrambled alphabet. A becomes Q, B becomes W, C becomes E. | |
| 4To decrypt, use the reverse table: find each ciphertext letter in the key row and swap it for the plain letter above it. | Dkeyword: CYBER key: CYBERADFGHIJKLMNOPQSTUVWXZ | |
| 5key: QWERTYUIOPASDFGHJKLZXCVBNN | EA monoalphabetic cipher uses one fixed scrambled alphabet for the whole message. The key does not change from letter to letter. | |
| 6Encrypt HELLO with key shift 3 -> KHOOR, so the key changes for every letter. | FThe key repeats the letter N and leaves out M. A valid key must use each of the 26 letters exactly once. |
Complete each line of code by filling in the missing parts.
Shade in the letter of the line that contains an error.
monoalphabetic substitution cipher — A cipher that swaps each letter for a different letter from one scrambled alphabet. That scrambled alphabet is the key, and it never changes during the message.plain = "ABCDEFGHIJKLMNOPQRSTUVWXYZ"
key = "QWERTYUIOPASDFGHJKLZXCVBNM"
print(len(key))i = plain.index("H")
cipher = key[i]
print(cipher)i = key.index("Z")
print(plain[i])import math
print(math.factorial(26))keyword = "ZEBRA"
rest = "CDFGHIJKLMNOPQSTUVWXY"
key = keyword + rest