CS574 HW Assignment 1 Solution
CS574 HW Assignment 1 Solution
1. a. Do no put all of your hopes and resources into one goal or dream (10 points)
2. a. encryption works and properly implemented strong crypto systems are one of the few things
that you can rely on (10 points)
3. For 1 ≤ i ≤ 128, take ci ∈ {0, 1}128 to be the string containing a 1 in position i and then zeros
elsewhere. Obtain the decryption of these 128 ciphertexts. Let m1, m2, . . ., m128 be the
corresponding plaintexts. Now, given any ciphertext c which does not consist of all zeros, there
is a unique nonempty subset of the ci’s which we can XOR together to obtain c.
Let I(c) ⊆ {1, 2, . . ., 128} denote this subset. Observe
Thus, we obtain the plaintext of c by computing. Let 0 be the all-zero string. Note that 0 = 0 ⊕ 0.
From this we obtain E (0) = E (0 ⊕ 0) = E (0) ⊕ E (0) = 0. Thus, the plaintext of c = 0 is m = 0.
Hence, we can decrypt every c ∈ {0, 1}128 (10 points)
5. a. REHTX EABSM MTLTT HDATL AYTES HNAOT LCTDX PEEEV OGTFI FUITU ELEIM ERRTH IEEAH
NTORH (10 points)
5. b. The two matrices are used in reverse order. First, the ciphertext is laid out in columns in
the second matrix, considering the order dictated by the second memory word. Then, the
contents of the second matrix are read left to right, top to bottom and laid out in columns in the
first matrix, considering the order dictated by the first memory word. The plaintext is then read
left to right, top to bottom. (10 points)
7. Hashing. (5 points)
Computing equipment.
Password Encryption.
Email encryption.
File and disk encryption.
Database security.
File transfer.