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.
8.4. MULTIPLE ENCIPHERINGS 147<br />
Just as the gcd is the largest number that divides both, the lcm is the<br />
smallest number that both divide. (Obviously word order matters!) Are they<br />
connected in anyway besides word order Consider the following chart:<br />
m n mn gcd(m, n) lcm(m, n)<br />
4 8 32 4 8<br />
4 6 24 2 12<br />
3 8 24 1 24<br />
8 10 80 2 40<br />
5 12 60 1 60<br />
8 9 72 1 72<br />
From the examples it appears that gcd(m, n) × lcm(m, n) = m × n, and this is<br />
correct. Since we have a method for computing gcd’s, it is perhaps better to<br />
write<br />
mn<br />
lcm(m, n) =<br />
gcd(m, n) .<br />
In particular, if m and n are relatively prime then lcm(m, n) is just the product<br />
mn.<br />
Examples: What keylength do the following keys produce<br />
(1) hamburger and FrenchFries give a 9 × 11 = 99 letter keyword<br />
(2) Francisco and <strong>California</strong> and Oakland. letter keyword.<br />
(3) SanFrancisco and <strong>California</strong> and Oakland give a 12×10×7<br />
2<br />
= 350 letter<br />
keyword.<br />
(4) SanFrancisco and <strong>California</strong> and Oakland and FrenchFries. 12<br />
⋄ ⋄ ⋄ ⋄ ⋄ ⋄ ⋄ ⋄ ⋄ ⋄ ⋄ ⋄<br />
Using multiple keywords thus produces the equivalents <strong>of</strong> very long keywords<br />
relatively easily. How helpful is this Suppose our goal is to have no more than<br />
20 letters <strong>of</strong> depth per keyword letter in a Vigenère cipher. There are about<br />
70 characters per line <strong>of</strong> typed text and about 50 lines <strong>of</strong> text per page, so<br />
about 3500 characters per page. Since 3500/20 = 180, for each page <strong>of</strong> message<br />
we would need more than 180 letters worth <strong>of</strong> keyword. So Francisco and<br />
<strong>California</strong> and Oakland would safely encipher no more than (9 × 10 × 7 =<br />
630)/180 = 3.5 pages <strong>of</strong> message.<br />
Suppose we must send 100 pages <strong>of</strong> messages a day We must have keyword<br />
<strong>of</strong> about 100×180 = 18, 000 letters (= 6 pages), or a clever selection <strong>of</strong> 4 words,<br />
with lengths 7, 9, 13, and 17. And these words must be changed everyday.<br />
Modern life is making this problem even more severe: speaking at 200 words<br />
per minute on a cell phone means to have a secure conversation one needs in<br />
12 (2) 9 × 10 × 7 = 630, (4) 12×10×7×11<br />
2 = 3850.