Better Gutenberg
Free, beautifully formatted public-domain ebooks
‹Better GutenbergElementary CryptanalysisChapter XIX — Polyalphabetical Encipherment Applied by Groups · 20 of 26Contents›

Elementary Cryptanalysis

by Helen Fouché Gaines

20 of 26 · Contents · Download EPUB

Chapter XIX Polyalphabetical Encipherment Applied by Groups

Any one of the multiple-alphabet ciphers may change keys at each new group instead of with each consecutive letter. As a rule, this kind of encipherment is never found except in connection with very simple ciphers, and the intact plaintext groups, each one standing on its own key-line, are readily discovered by the decryptor who takes the precaution of cutting out a segment from his cryptogram and “running down the alphabet,” first treating the original letters and then, if necessary, their complements. Porta encipherment, in any form, is rare, but its cryptograms can be subjected to the same process, provided the letters of the tested segment are first enciphered in the AB-alphabet, and the subsequent extensions properly carried out.

Figure 149
The “PHILLIPS” Cipher
1 C U L P E*2 R Z YX W 2 R Z Y X W 2 R Z Y X W
2 R Z Y X W1 C U LP E* 3 V T S Q O 3 V T S Q O
3 V T S Q O3 V T SQ O 1 C U L P E* 4 N M K I H
4 N M K I H4 N M KI H 4 N M K I H 1 C U L P E*
5 G F D B A5 G F DB A 5 G F D B A 5 G F D B A
(1)(2) (3) (4)
Plaintext: T RYMA.......C D O N A....... L D O N T....... H A TMU..
CIPHER: K TQDC.......T X N F R....... I X C F L....... C R KLD..
2 R Z Y X W3 V T SQ O 3 V T S Q O 3 V T S Q O
3 V T S Q O2 R Z YX W** 4 N M K I H 4 N M K I H
4 N M K I H4 N M KI H 2 R Z Y X W** 5 G F D B A
5 G F D B A5 G F DB A 5 G F D B A 2 R Z Y X W**
1 C U L P E*1 C U LP E* 1 C U L P E* 1 C U L P E*
(5)(6) (7) (8)
..... R PHYP.......R O P O S....... I T I O N....... C URL Y.
..... T WGQW.......M R O R X....... W K W N Z....... T SUQ P.

With mixed alphabets of any kind, a number of cases may arise, according to whether groups are of uniform length, or of varying lengths, or, in fact, represent word-lengths; or, in the one case of uniform groups, according to the length of these groups, or the amount of material available, or as to how much is known in advance, and so on. From among so many possibilities, suppose we select the case of accumulated short messages, and, at the same time, take a brief look at a cipher which, according to its description, was actually intended for group-by-group application. This cipher, which may be examined in Fig. 149, was described in an early issue of The Cryptogram as having been used for military purposes, and was called the “Phillips” system. The text of the figure “Try Macdonald on that Murphy proposition. Curly” includes eight five-letter groups, thus requiring eight cipher alphabets. The key, as originally prepared, is a mixed 25-letter alphabet written into a 5 x 5 square, of which the five rows can be cut apart to form five horizontal strips. It may also be set up with anagram blocks. This is alphabet 1 (or block 1), and serves to encipher the first five-letter group. The method of substitution will be explained in a moment. Alphabet 2 (block 2) is derived from the first by moving line 1 so that it stands between lines 2 and 3. Alphabets 3, 4, and 5 are derived by continuing to move the original line 1 so that it stands, successively, between lines 3 and 4, between lines 4 and 5, and at the bottom of the square. Alphabets 6, 7, and 8 are derived by moving the original line 2 according to the same plan. For puzzle purposes, these movements may continue as they apparently began. Line 2 may be given its one remaining shift, which places it at the bottom of the square, and lines 3, 4, and 5 may then be moved downward in the same way as the first two; some puzzlers, in fact, will afterward continue by treating columns. But according to the description (the only one the writer has ever seen of this cipher), the eighth cipher alphabet is the last. For the encipherment of the next eight groups, either the square is restored to its original set-up and the same eight alphabets used again, or the first key is abandoned altogether in favor of an entirely new one.

Now, considering any one block, as No. 1, the method of substitution is as follows: Each letter is to be replaced by the one standing immediately to its right on the descending diagonal. If the given letter happens to stand at the extreme right side of the square, it is to be replaced by one standing at the extreme left and on the next line below. If it happens to stand on the bottom row of the square, it is to be replaced by one standing on the top row and in the next column to the right. One letter, in fact, requires both of these (mental) adjustments; the letter which occupies the lower right-hand corner is to be replaced by the one occupying the upper left-hand corner. If the foregoing is well understood, is is quite obvious that our key-square is, to all intents and purposes, a rhombus formed with five diagonals. One diagonal is complete, as C Z S I A of block 1. The other four break off at the right and are continued from the left, as L X O N F of block 1; or, if you prefer, break off at the bottom and are continued from the top, as N F L X O of block 1. It should be obvious, also, that any one of these five diagonals can be considered as beginning with any one of its five letters without in the least changing the encipherment. Thus, each diagonal furnishes what is called cyclical encipherment. But, as a matter of fact, the entire square involves cyclical encipherment: The placing of line 1 at the bottom of the square, or of column 1 on the right side of the square, or the transfer of several lines or columns, or of both, will not have any influence whatever on substitutes; for this, it is necessary to alter the 1-2-3-4-5 order of these rows or columns. Alphabet 5, then, will be the same as alphabet 1; and if the plan of the puzzlers be followed, this same alphabet continues to reappear for the encipherment of each fourth group, blocks 1, 5, 9, 13, 17, and so on, of a long cryptogram, eventually giving a great deal of material in one cipher alphabet. Moreover, groups having a length of five letters will carry some very visible simple substitution patterns. Now suppose we look at Fig. 150.

These eight cryptograms have all come from one source. The general frequency count has shown a missing letter, J, suggesting the use of a square, and we have suspected the cipher as “Phillips.” With cryptograms arranged one below another, as shown, the first five columns are presumably enciphered with block 1 of that cipher, the next five columns with block 2, and so on; thus, we presumably have 40 letters each belonging to alphabets 1, 2, and 3, and almost that number belonging to alphabet 4, that is, enough material for frequency counts which will show whether or not they have been taken on simple substitution alphabets. While 40 letters of text are very few, we could, eventually, solve any simple substitution cryptogram of that length, or any mixed-alphabet periodic whose alphabets have furnished 40 letters each. In the present case, our first alphabet has furnished eight known word-beginnings; we have one column known to contain only initials, and followed by two others which are very likely to be the hiding-place of vowels. This does not mean that we should have no preliminary struggles, but in the end there are plenty of clues to set us on the right road: The predominant letters of alphabet 1 are A, B, O, K, U (practically sure to contain e, t, and one of the vowels a or o). The column of initials repeats both A and T (to be compared against a list t s a....). The second and third columns, combined, include B and O, three times each, with O found in the initial column also (both could be vowels, and O probably represents a, though i is also frequently found as an initial). If A, by frequency and initial position, be tried as t, then the other repeated initial, T, can be tried as s. This assumption brings out, in the fourth message, a pattern s - t t -, in which the second letter, B, would have to be a vowel, either e or o, since it has been doubled, with e appearing more likely in the given pattern and also in that of the sixth message, s - - - s. The letter O, which under the encipherment scheme could

Figure 150
1.AF S XO S G Y F O N P Y O A K O A D G F Z K S Z O Y Z Y LAW ACF.
2.HO U AL H L E D H D L Y G A V D W A K.
3.KO N BK A X U O N H I Q P L B A Z F F S Y F D R R L Y F.
4.TB A AM A F Q E Z U M A I X G F S K B.
5.DK O AC Y B Y E N I M O W D L E G A D O H C Y U U R G.
6.TB B XT O M M D A S I A A Y D Z.
7.OU S UB U L O I Y G A K X M A K W E L.
8.AK R UW A N A L O N N F M S K A X E U.
General Frequency Count:
ABC DE F G H I J K L M N O P Q R S T U V WXYZ
2583 106 11 7 5 5. 11 10 7 7 15 2 2 4 8 3 10 1 56126
Frequency Count on Alphabet 1, Only:
A B C D E F G H I J K L M N O P Q R S T U V W X Y Z
6 5 1 1. 1. 1.. 4 1 1 1 5.. 1 2 3 4. 1 2..

not possibly be its own substitute, can be assumed, by frequency, as a, rather than i.

These first correct substitutions are all shown on the left side of Fig. 151, on the lines marked (a). Surely the next identification would be the m of seems, and probably, too, the l of settl... With the vowel a already identified, the repeated OU would be tried as an, and the repeated KO as ha, using the digram list. These are the substitutions marked (b), and from this it is but a step to the assumptions marked (c). On the right side of this figure, we are proceeding into alphabet 2. A frequency count here has shown that the leading letters of this alphabet are A, O, Y, two of which, A and O, were also leaders in alphabet 1. It is one peculiarity of the “Phillips” cipher that a change in alphabets means a change in only fifteen of the substitutes, the remaining ten continuing to represent the same originals as in the preceding alphabet. Concerning A, we can see, from the third and fourth messages, that it has not continued to represent t; but O, in the sixth message, has rather suggested the word all and even the expression all right, which would carry us on into the third alphabet. From this point onward, then, we are in the same fortunate position as the decryptor who intercepts his message partly in cipher and partly in plaintext. With the context as a guide, we need not worry as to what happens at the ninth group.

Presumably, during all of this time, we have been recording substitutes in a

2. H O U A L H L E D H...
  (a). a. t......
  (b). a n t.. s u r.
  (c) c a n t. e s u r e (Can’t be sure...)

3. K O N B K A X U O N...
  (a). a. e. i.. a.
  (b) h a. e h i m. a t
  (c) h a v e h i m. a t (Have him...)

4. T B A A M A F Q E Z...
  (a) s e t t. i. g. a
  (b) s e t t l i n g u.
  (c) s e t t l i n g u p (Settling up...)

5. D K O A C Y B Y E N...
  (a).. a t......
  (b). h a t. o y o u t
  (c) w h a t. o y o u t (What do you t...)

6. T B B X T O M M D A...
  (a) s e e. s a l l. i
  (b) s e e m s a l l r i
  (c) s e e m s a l l r i (Seems all ri...)

7. O U S U B U L O I Y...
  (a) a... e.. a..
  (b) a n. n e. s a. o
  (c) a n y n e w s a. o (Any news abo...)

8. A K R U W A N A L O...
  (a) t.... i. i. a
  (b) t h. n. i t i s a
  (c) t h i n k i t i s a (Think it is a...)

Frequency Count on Alphabet 2, Only:

A B C D E F G H I J K L M N O P Q R S T U V W X Y Z
5 1. 2 3 2 1 2 1.. 3 2 3 5. 1. 1. 2.. 1 4 1

key-frame. We have recovered fifteen of these in alphabet 1, and also a number in alphabet 2. Those recovered from alphabet 1 are shown at the top of Fig. 152. O is the substitute for a, A is the substitute for t, T is the substitute for s, and S is the substitute for y. Thus, if the cipher is “Phillips,” then, in the original key-square, the two letters A O were consecutive on one of the diagonals, the two letters T A were consecutive, the two letters S T, and the two letters Y S, so that the complete diagonal must have been Y S T A O, and even though the letter o was not used at all in alphabet 1, we know that its substitute must have been Y, since these diagonals may be considered to begin with any one of the five letters. By beginning at c-H, and following out another such chain, we may find another complete diagonal, C H K W D; and, in addition, we may find parts of diagonals. All of these are shown at (b).

Whether or not we can go further than this, without consulting other cipher alphabets, depends upon whether or not the original key-square contained some of those alphabetical, or nearly alphabetical, sequences which so often betray the poorly-mixed alphabet; usually, these are most easily found toward the X Y Z end

            Figure 152
            An Alphabet No. 1 - Taken from a Key-Frame:
Plaintext: a b c d e f g h i. k l m n o p q r s t u v w x y z
SUBSTITUTES: O. H. B.. K R. W M X U... F T A. N D. S.

   (a) A T S Y Y
        O A T S S
        T
        A
   (b) O
*Y C E I L *V
   S H B R M N
     T K F *X U
       A *W
        O D

(c) (d) (e) N D.│S│ S. N D. S I N D E. N D. S I N D E S U C│.│T. T. U C B T R U C T. U C. T R U C B.│H│L A H L A.. H L A F. L A.. H L A F. H │.│K M O. K M O.. K M O. K M O.. K M O.. │ │V W X Y. V W X Y. V W X Y V W X Y. V W X Y.

of the normal alphabet. In the given case (b), we are able to find the letters V, W, X, and Y, each standing on a separate diagonal; thus, by readjusting the beginning-points of their diagonals so as to place these letters at the bottom, we are able to set together four of these diagonals in the order shown at (c), leaving only the part-diagonals E B and I R F still to be added. Their length will show that I R F belongs to the missing diagonal, but E B, by its length, could belong to any one of three diagonals. Further developments can be carried out with the rhomboid adjustment of (c), or, if this is confusing, the conversion to a square can be made immediately. The student may decide for himself which he prefers of the two developments marked (d) and (e). Notice that this restoration of the key-square can take place not only from a single alphabet, but with only 15 substitutes known in that alphabet. But without the aid of alphabetical sequences, we must, in the first place, have 20 substitutes, four for each diagonal, in order to recover the full diagonals, after which, each one is entirely independent of the other four, so that they cannot be adjusted and combined without consulting one or more of the other alphabets. Here, the method varies a little, according to just what we can recover, though a hasty glance at the perfect case will serve to show the general path for all. To see this as rapidly as possible, we will assume that we have recovered from alphabet 1 the full five diagonals, and that, in alphabets 2, 3, and 4, we have discovered the substitutes for e, and also the originals for which E has been the substitute.

A careful consideration of the cipher itself will show that no letter can have more than four different substitutes: the four letters in the next column to its right which are not on the same line with itself. Also, that no letter may act for more than four different originals: the four letters in the next column to its left which are not on the same line with itself. Any letter, in order to take all four substitutes and act for all four originals in four successive alphabets, must have started on the top line, which is the moving one.

Now, considering Fig. 153: Our five recovered diagonals are imagined to be those of a well-mixed square, so that we have no discoverable sequences. It has been found that the letter e, in alphabets 1, 2, 3, and 4, has taken, successively, the substitutes B, H, Q, and Z, and that the cipher-letter E has served, successively, as the substitute for x, u, f, and o. The four letters B H Q Z, then, must all have stood in a single column in exactly the order named; and the four letters X U F O must have stood in another column, two positions to the left of the first, but with a minor difference in the order: some other letter (the one on the same line as E) must have intervened between X and U. The order in this column, then, must have been U F O X. Our first step toward combining the five diagonals is that of adjusting four of them so as to set up the column B H Q Z. This automatically sets up four letters of the other column U F * X (D) — in the figure, the X D is present, but has not been adjusted to the U F * — after which, the fifth diagonal can be added to the others by placing the O of the column U F O X (D). Now, since the letter E has taken, successively, all four of its substitutes and all four of its originals, it must, in alphabet 1, have been standing on the top row. Two parallel lines (if desired) can be ruled across the set-up to show the top and bottom of the square, and two others (placed anywhere, so long as they mark a width of five columns) may be ruled to show the two sides. The outside letters, Y, V, and D, may all be transferred to the opposite ends of their diagonals, after which the rhomboid is easily adjusted to the form of a square.

It will be seen from what precedes that group-by-group encipherment offers little, if anything, that is new, and no problems or theories which the student could not figure out with what he has learned of substitutions. Solving the actual cryptograms, of course, could present some difficulties, according to the individual case.

Of the practice cryptograms to follow, No. 140 follows the plan of the puzzlers, and should not prove very difficult in spite of its brevity. No. 141 is also a “Phillips,” while No. 142 has been enciphered with a mixed-alphabet slide applied to five-letter groups.

140. By NEMO. (“Phillips.” Probable word: ASSOCIATION) N D Q T F Q Z C N G B U Z H X N L U K Y F T E E W N R G U R M O X Q X E Q Z L B G X H W F F N R P X P X V D D F I T G S E W R T I I T Z X E R V W A R I S P E Y I G R Q C.

141. By PICCOLA. (This is the real McCoy - in 1938. But times change).

(a) K G E U H C K T S X P C K N C A D F X Q C B X T (b) O U T U I U B F S B Q A P H N B Y Z X X L R U G (c) O F U O S K H Q T K P W Q F E T B W W X P K B O K G H (d) B L A M R P G X B W G C W K Q Z I A Q C U H Y R C (e) G U C O S B B L P S B Q D K P G P K D S R C T B L I (f) X R O S U I T T F G Y P C M C K F T F X O S R B H O A G M (g) B O I B V B U K E E B D K B C O B Y W B T B M U H O O A B (h) Y C U Y U T B I T F H S A N P H C W T.

142. By PICCOLA. (Direct examination - Snowball vs. Snowball).

(q) H F X L F M B L R N I N J W P Z Z G I S B B O Z X S F S H R H T A T M R O F V? (a) S X F U R R W X I Q S S. (q) U F V H C N T I T T F O E J X O G N S G X U S O E H I V L X E A T? (a) U R Q Q T W E X U W I T O S. (q) H C W R U Q U I T T F Y O Q I U D R S G X Z W H G F E T P C J E M K Q F I N D O E E Z B L? (a) U R Q Q T W. (q) U R S U F U G J R E D V T O V E C Z X Z U Z G X S D S H C Q K E X Z W I O V I R M H D W B D Z R R M? (a) U R Q T D H T T H I J S S. (q) X C Q H R E M Z L T T O P A V H U L E B O Y O G N U F V X T Z L E K S W F A V N? (a) X R L L Q E W L T C O S P W V C Z L E B D W Y I Z F I S R D T W C E Z T T A S G O L E.

143. By PICCOLA. (Can you guess what cipher? “Foregoing” refers to No. 141).

R N N G T R I O O H E I T T A F N D E N O G E L G E Y F I R D A I S E.

← Back to Elementary Cryptanalysis

Scroll to Top