[Next] [Up] [Previous] [Index]

The Hagelin Machines

Although the Swiss firm founded by Boris Hagelin has manufactured, and continues to manufacture, many kinds of cipher machine, the words "Hagelin machine" will normally inspire thoughts of their unique lug and pin based machines.

The basic principle of a Hagelin lug and pin machine is easy enough to describe. In the C-38, used by the U.S. Army as the M-209, six pinwheels, with 17, 19, 21, 23, 25, and 26 positions on them, can be set by the user with an arbitrary series of pins that are active. For every letter enciphered, all the pinwheels rotate one space.

The combination of active and inactive pins is presented to a cage with 27 sliding bars. Each bar has two sliding lugs on it, which can be placed either in a position where it is inactive, or in a position corresponding to any of the pinwheels, so that it will slide the bar to the left, if the pin currently presented by that pinwheel is active.

The number of lugs sticking out rotates the cipher alphabet against the plaintext alphabet. The two alphabets used are just the regular alphabet, and the alphabet in reverse order, from Z back to A. This meant that encipherment was reciprocal, although the machine still had a switch to select encipherment or decipherment: this determined if the machine printed its output in five letter groups, or if it translated one letter, chosen by the user, to a space.

The C-52, a postwar version of the Hagelin lug and pin machine, added an extra five sliding bars to the cage that, instead of moving the cipher alphabet, caused the stepping of the pinwheels to be irregular. The first pinwheel always moved, but the remaining five pinwheels only moved when their corresponding bars were slid to the left. The six pinwheels were labelled A, B, C, D, E, and F from left to right; bar 1 controlled pinwheel B, bar 2 pinwheel C, and so on.

Also, on the C-52 the lugs could be moved from bar to bar, and the six pinwheels were chosen from a set with lengths 25, 26, 29, 31, 34, 37, 38, 41, 42, 43, 46, and 47. Using the pinwheels with lengths 34, 38, 42, 46, 25, and 26 allowed one to achieve compatibility with the C-36: provided one also turned off the irregular pinwheel stepping feature.

The alphabet always started from its normal position, instead of the position last used, before being rotated by the projecting slide bars. This was perhaps the machine's main weakness, as it made attacks based on frequency counts of displacements possible, but it was perhaps unavoidable, since there was always a slight possibility of occasional mechanical errors. Particularly as the machines were often used on battlefields.

In setting the lugs on the sliding bars, it was important to put many lugs for some pinwheels, and few lugs for others, so as to get an even distribution of displacements: basically, although some bars with two lugs active were desirable for irregularity, the arrangement needs to approximate a binary coding of the active pins - that is, one pinwheel might have only one lug facing it, another two, another four, and another about eight, and another about thirteen or so.

For the C-52, in setting up lugs on the first five bars, it was important to ensure frequent movement of the pinwheels.


[Next] [Up] [Previous] [Index]

Next
Chapter Start
Skip to Next Section
Table of Contents
Home Page