Cryptology - Unofficial St. Mary's College of California Web Site
Cryptology - Unofficial St. Mary's College of California Web Site
Cryptology - Unofficial St. Mary's College of California Web Site
Create successful ePaper yourself
Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.
184 CHAPTER 9. DIGRAPHIC CIPHERS<br />
pairs <strong>of</strong> letters by e modulo N, and decipher by multiplying by d. (The<br />
resulting ciphertexts will be numbers, rather than letters.)<br />
(a) If the modulus N is chosen to be 2999, show that e = 100 is a proper<br />
enciphering key. Find the corresponding deciphering key d.<br />
(b) Use e = 100 and N = 2999 to encipher blocks.<br />
(c) Use the deciphering key found in part (a) to decipher 2543-1513-<br />
1460.<br />
(d) If N = 3001 and e = 29, find d.<br />
(e) Use e = 29 and N = 3001 to encipher number.<br />
(f) Use the deciphering key found in part (d) to decipher 218-2644-17-<br />
2037.<br />
13. (Continuing the ideas <strong>of</strong> Exercise 12.) A problem with the cipher from<br />
Exercise 12 is that the ciphertext is numbers not letters. If we want<br />
a bigram-decimation cipher, perhaps we should use 676 = 26 2 as the<br />
modulus, rather than 26. Here is one way to try to do this:<br />
Choose a key k with 1 ≤ k < 676, relatively prime to 26. For each pair <strong>of</strong><br />
plaintext letters p 1 p 2 , first convert the letters into their numerical equivalent,<br />
then compute the cipher-number c = ( k ∗ (p 1 ∗ 26 + p 2 ) ) %676. The<br />
ciphertext is then C 1 C 2 , where C 1 and C 2 are the quotient and remainder<br />
when c is divided by 26.<br />
For example, let k = 19. Then to = 20 15 has ciphernumber c = ( 19 ∗<br />
(20 ∗ 26 + 15) ) %676 = (19 ∗ 535)%676 = 25. Since 25 ÷ 26 = 0 = Z and<br />
25%26 = 25 = Y, to is enciphered to ZY.<br />
To decipher, first find the inverse <strong>of</strong> 19 modulo 676, which is 427. Then<br />
multiply ZY = 25 = 00225 by 427%676 to receive 535. Finally 535 ÷ 26 =<br />
20 = t and 535%26 = 15 = o.<br />
(a) Use k = 101 to encipher stat.<br />
(b) Use k = 219 to encipher data.<br />
(c) Find the inverse <strong>of</strong> k = 87 modulo 676, and use it to decipher BONO.<br />
(d) Carefully examine the ciphertexts from this Exercise. What appears<br />
to be happening What does this say about the value <strong>of</strong> this cipher<br />
In particular, how “digraphic” is this digraphic ciphers<br />
14. It was hinted in the text that Hill Ciphers are simply a fancy Decimation<br />
Cipher. In this Exercise we see why this is so.<br />
(a) Find the form the enciphering matrix takes if we choose a = 0.<br />
(b) Encipher the “message” p 1 p 2 p 3 p 4 p 5 p 6 using the matrix you found in<br />
part (a).<br />
(c) Is the cipher performed in part (b) a Decimation Cipher If not, how<br />
close is it