Codes Ciphers and Cryptography Chapter 1 Homework Questions
This homework assignment is due the week of September 20, 2004 at the beginning of class. You may discuss problems with other people in our class, but must turn in your own work. Be as neat and complete as possible.
LGOABIAIRFRENPKEHSEGHEAIENIIMTSESNCAGTMACSNEOSDRUYN
RTLYBOEYOYPTFRCHLTLTAAAAOEHLEVCGTESSEKRY.
a. Multiplicative cipher: This cipher works like the additive cipher, except instead of adding m, mod 26, you multiply by m, mod 26. Make a cipher with m = 3.
i. Does this method of creating a cipher work for all integers m = 0, 1, 2, …, 25?
ii. For which integers does it work?
iii. Can you show why it fails for certain integers?
iv. How do you decipher an encrypted message?
b. Affine cipher: This cipher works in two steps. Step 1: add an integer m mod 26. Step 2: multiply by an integer n mod 26.
i. Make an affine cipher with m = 14 and n = 3.
ii. How many different affine ciphers are there? (Hint: Fundamental Principle of Counting.)
Cleartext:
|
I |
|
|
|
I |
|
|
|
O |
|
|
|
I |
|
|
|
R |
|
|
|
S |
|
H |
|
S |
|
G |
|
O |
|
C |
|
P |
|
E |
|
? |
|
|
|
T |
|
|
|
A |
|
|
|
D |
|
|
|
H |
|
|
|
Ciphertext: IIOIRSHSGOCPE?TADH
Is this a transposition cipher or a substitution cipher? Suppose you intercept this message and suspect it is a rail fence cipher: TCHHEKTELEHIIMICSA. Decrypt the message!
a. SBKF SFAF SFZF
b. EIM QCJ CII SAQ KMM IBK GJI FSQ HAT GMG JJI VAP WVI GJK MHA VJG TUI
c. HEXFX CG ICHHIX WAJQH HEPH HEX BFAQIXT AZ BFAHXVHCYS PYW GXVJFCYS VATT
JYCVPHCAYG LCII VAYHCYJX HA SFAL WJFCYS HEX VATCYS NXPFG YAH AYIN CY CHG
HFPWCHCAYPI TCICHPFN PYW BAICHCVPI FAIXG QJH PIGA CY HEX BJQICV PYW
VATTXFVCPI WATPCYG (Hint: A keyword was used for this cipher!)