06.01.2015 Views

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

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

244 CHAPTER 12. RSA<br />

c = 3 → 3 23 %247 = 243.<br />

o = 15 → 15 23 %247 = 59.<br />

d = 4 → 4 23 %247 = 36.<br />

e = 5 → 5 23 %247 = 47.<br />

So code is send as 243, 59, 36, 47.<br />

2. Decipher 47, 123, 61, 59.<br />

To decipher we must find d. First, (P −1)(Q−1) = 18·12 = 216, and<br />

then from the Euclidean algorithm d = 47 is the solution 23x ≡ 1<br />

(mod 216). Then<br />

47 → 47 47 %247 = e → e.<br />

123 → 123 47 %247 = 24 → x.<br />

61 → 61 47 %247 = 16 → p.<br />

59 → 59 47 %247 = 15 → o.<br />

So the deciphered message is expo.<br />

(2) Use N = 2747 and e = 19 to encipher exponentiation in two-letter pairs.<br />

ex = 0524 → 0514 19 %2747 = 1567.<br />

po = 1615 → 1615 19 %2747 = 1084.<br />

ne = 1405 → 1405 19 %2747 = 1461.<br />

nt = 1420 → 1420 19 %2747 = 1323.<br />

ia = 0901 → 901 19 %2747 = 901.<br />

ti = 2009 → 2009 19 %2747 = 2009.<br />

on = 1514 → 2009 19 %2747 = 1818.<br />

So 1567, 1084, 1461, 1323, 901, 2009, 1818 is the ciphertext.<br />

(3) Use that 2747 = 67 · 41 to to decipher 1032, 1469, 1821, 1551, 2020<br />

into two-letter pairs.<br />

After finding (P − 1)(Q − 1) = 2640 and d = 139, we decipher:<br />

The answer is superpower.<br />

1032 → 1032 139 %2747 = 1921 → su.<br />

1469 → 1469 139 %2747 = 1605 → pe.<br />

1821 → 1821 139 %2747 = 1816 → rp.<br />

1551 → 1551 139 %2747 = 1523 → ow.<br />

2020 → 2020 139 %2747 = 518 → er.<br />

⋄ ⋄ ⋄ ⋄ ⋄ ⋄ ⋄ ⋄ ⋄ ⋄ ⋄ ⋄

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!