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

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

56 CHAPTER 4. THE EUCLIDEAN ALGORITHM<br />

Examples:<br />

(1) Encipher multiply with key 7m + 2.<br />

Rather than just adding or multiplying we combine the two.<br />

plaintext m u l t i p l y<br />

plainnumbers 13 21 12 20 9 16 12 25<br />

×7 91 147 84 140 63 112 84 175<br />

+2 93 149 86 142 65 114 86 177<br />

%26 15 19 8 12 13 10 8 21<br />

ciphertext O S H L M J H U<br />

So the ciphertext is OSHLMJHU<br />

(2) Encipher decimate with key 5m + 8.<br />

(3) Encipher conquer with key 9m + 3. 1<br />

⋄ ⋄ ⋄ ⋄ ⋄ ⋄ ⋄ ⋄ ⋄ ⋄ ⋄ ⋄<br />

4.2 GCD’s and the Euclidean Algorithm<br />

Our Decimation and Linear Ciphers have two problems: the enciphering key<br />

must be chosen “properly” (a term I still haven’t defined) and once it is chosen<br />

the corresponding deciphering key must somehow be determined. It is perhaps<br />

not surprising that the solutions to these two problems are related. However it<br />

is probably surprising that the solutions involve greatest common divisors and<br />

were known to Euclid, some 2500 years ago.<br />

Euclid (c. 350 B.C.E.) textbook, The Elements, is the most successful ever<br />

written, and, with The Bible, one <strong>of</strong> the most published books <strong>of</strong> all time,<br />

appearing in over 1000 editions. Euclid taught at the academy in Alexandria,<br />

but this is about all we know about his life. The Elements deals with plane<br />

and solid geometry and number theory, while other books <strong>of</strong> Euclid cover such<br />

topics as astronomy, mechanics, music, and optics.<br />

The Greatest Common Divisors, or gcd, <strong>of</strong> two integers is exactly what<br />

the name suggests: it is the largest integer that divides both. For example, 14<br />

is divisible by 1, 2, 7 and 14, while 10 is divisible by 1, 2, 5 and 10. The largest<br />

divisor that 14 and 10 have in common is 2, and so gcd(14, 10) = 2.<br />

For some reason most people seem able to rather automatically compute the<br />

gcd’s <strong>of</strong> small numbers.<br />

1 (2) BGWAU MDG, (3) DHYZJ VI.

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

Saved successfully!

Ooh no, something went wrong!