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.

11.4. THE KNAPSACK CIPHER SYSTEM 223<br />

turning the easy knapsack problem into a hard one. Further, if we use the<br />

Euclidean Algorithm to solve 39 × d ≡ 1 (mod 101) for d = 57, then we can<br />

turn the hard problem back into the easy one, for then multiplying the U’s by<br />

d will give us the W ’s back.<br />

⋄<br />

This example suggests somehow using the total weight to send messages. To<br />

produce 80 we used W 2 , W 4 and W 5 , hinting at the pattern no-yes-no-yes-yes<br />

or nynyy or 01011. What can 01011 mean<br />

a = 00001 g = 00111 m = 01101 s = 10011 y = 11001<br />

b = 00010 h = 01000 n = 01110 t = 10100 z = 11010<br />

c = 00011 i = 01001 o = 01111 u = 10101<br />

d = 00100 j = 01010 p = 10000 v = 10110<br />

e = 00101 k = 01011 q = 10001 w = 10111<br />

f = 00110 l = 01100 r = 10010 x = 11000<br />

Figure 11.1: Binary Equivalents for the Alphabet<br />

11.4 The Knapsack Cipher System<br />

Many modern ciphers are built around a mathematical problem that is (hopefully)<br />

impossible to solve unless you have some special information that makes<br />

the problem very simple. One <strong>of</strong> the first was the suitably named Knapsack<br />

Cipher System. It was invented by Ralph Merkle and Martin Hellman [MH]. 5<br />

In this cipher the intractable problem is the general knapsack problem, and the<br />

simple version is the super-increasing knapsack problem. The Knapsack Cipher<br />

attempts to exploit this method for turning the simple problem into an<br />

apparently impossible one.<br />

The first four steps <strong>of</strong> the set-up we’ve already seen. The final two make<br />

this into what was then a radically new type <strong>of</strong> cipher.<br />

5 M. E. Hellman and R. C. Merkle, received U.S. Patent 4,218,582, filed October 6 1977,<br />

issued August 19 1980 for “Public Key Cryptographic Apparatus and Method.” It expired in<br />

1997.

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

Saved successfully!

Ooh no, something went wrong!