📜 ⬆️ ⬇️

NEMA Encryption Machine

During World War II, the Swiss army used an enhanced version of the commercial Enigma K, sometimes called Swiss K. When the Swiss discovered that their secret messages were decoded by the Allies and the Germans, they decided to develop their own NEMA encryption machine.

NEMA (abbreviated from "Neue Maschine") is an electromechanical encryption machine developed by Zellweger AG (Uster, Switzerland) during World War II and replacing the famous German Enigme. The machine is also known as TD and as NEMA Modell 45.

At first glance, the car had 10 rotors, but only 5 of them were connected by an electric circuit. Also 4 out of 5 were coding rotors with 26 pins on each side. And the fifth disc is a reflex one, which could move during ciphering (unlike Enigma, where the reflector was fixed).
')
NEMA consisted of a 26 letter (AZ) keyboard for entering open messages, as well as 26 light bulbs highlighting the desired letters of the ciphertext. But compared to the Enigma, NEMA had additional switches between letters and numbers. They were used to connect to an electronic printing device. At NEMA, there were constructive improvements, such as irregular stepping rotations of encryption rotors (by adding extra wheels). Hacking the cipher was especially difficult.



The development of the NEMA machine took place from 1941 to 1943 by a team of specialists led by Bernese teacher Arthur Alder (Captain Arthur Alder). The developers included: analytic mathematics teacher Hugo Hadwiger (Hugo Hadwiger), professor of mathematics Heinrich Emile Weber (Heinrich Emil Weber) and Paul Glur (Paul Glur).

The first prototype of NEMA was presented at the beginning of 1944, but it received approval only a year later (after making several modifications and improvements). In 1946, began the production of machines. And the model was commissioned only in 1947, which was somewhat late for military affairs. NEMA was used by the Swiss army and the Ministry of Foreign Affairs (Diplomatic Service) in the post-war years, until it was replaced by more advanced encryption devices, such as Hagelin and Gretag.

NEMA in detail:













Control


NEMA was in a black metal case-suitcase with a leather belt for carrying and a cylindrical lock on one side. In the upper case cover there were all the necessary and additional components, such as a panel with light bulbs, a power cable, additional rotors and other accessories.

Detailed diagram of the NEMA machine:



NEMA Models


The NEMA encryption machine was made in three basic types of models: Training, Military and Machines of the Ministry of Foreign Affairs. Despite the external identity and similarity of most of the operations of these models, some significant differences made the machines opposite in action.

Training machine

This model was used to train operators. To avoid the risk of leakage of data about the machine and the principles of its operation, the training sample differed from the actual military model. Most of the surviving NEMA is of this type, since they have been used for training for a long time and intensively. In German, the model is known as Schulmaschine (from German - a school car). The sample has a label:

Nur fĂĽr Schulen und Kurse abgeben
A remettre uniquement aux Ă©coles et cours
A solo uso di scuole e corsi

War machine

This model has long been kept secret. Military samples were slightly different in operations, had additional rotors (E and F), which were located in cylindrical containers in the housing cover. And the markings on the stepped rotors differed. Since NEMA was created after the war, it was only occasionally used for testing and remained in stock for many years. In German, this machine is known as Kriegsmobilmachungs-Maschine or K-Mob-Maschine. The military model NEMA is a very rare instance, which can be recognized by the label:

Nur bei Kriegsmobilmachung abgeben!
Ne délivrer qu'en cas de mobilisation de guerre!
Da consegn. solo in caso di mobilitazione di guerra!

Ministry of Foreign Affairs machine

This version of NEMA was used exclusively by the Swiss Ministry of Foreign Affairs (Diplomatic Service). As far as is known, the cars of this model have never shown to the public. But it was found that the "diplomatic" NEMA were produced with different stepped rotors and discs, as well as a differently tuned stepped mechanism.

Principle of operation


The work of NEMA was a lot like the work of Enigma. Only in the Swiss car there was no switching panel. Instead, the number of grooves on the rotors was increased. When you press a key on the keyboard, the circuit closes. From a 4.5V battery, the current passed through various circuits and, as a result, turned on one of a set of light bulbs representing the desired code letter. The constant change of the electrical circuit made it possible to create a multi-alphabet substitution cipher. This made it more stable and reliable. Unlike Enigma, NEMA’s rotor movement mechanism was more complex.



In NEMA, a reflector was used to connect a pair of wires together. Its presence guaranteed involution, that is, that decryption was the same as encryption.

For a more detailed study of the operation of the 10 NEMA coding rotors, it was necessary to raise the hinge cover (to the left of the yellow label). The current flowed to the disks through an input rotor (ETW), one that is red. All discs were marked - yellow letters of the alphabet.



The extreme disk on the right is a reflector (UKW), used as a reflector and consisted of 26 static contacts. Between the reflector and the input rotor were four pairs of intermediate discs. Each pair consisted of an electric coding rotor with 26 contacts on both sides and a mechanical wheel that controlled the movement of the rotor. Each electric disk could be combined with any of the stepped rotors. Pin and flat contacts corresponded to the letters in the alphabet. In contact, the contacts of neighboring rotors closed the electrical circuit. Inside the rotor, each pin contact was connected to one of the flat. Each rotor had its own order of connection.



The red lever was used to move the rotors.



After opening the lid, the lever had to be pushed all the way.



A drum with pairs of rotors could be pulled out of the NEMA. With the exception of the input rotor, which was fixed and remained in the car.





In addition to the input, all the rotors are located on the spindle.



Rotor disassembled:



Step motion of rotors


The stepped motion of the NEMA rotors occurred in a complex pattern. The rotors were moved using narrow and wide spindles and dogs. Upward movement of the rotor moved one step. As a result, it moved only backwards ( Z → Y → X → W , etc.).



As an additional level of complexity, four adjustment screws were used in the design.



Adjustment of such screws required special tools and training. This configuration was used by military vehicles.

Key to cipher


Selecting the key to the NEMA cipher, it was necessary to consider the internal and foreign keys. The internal key determined which stepped rotors are connected to the encryption disks. For example:

15-C / 12-A / 14-D / 13-B

The foreign key determined the initial position of the rotor at the beginning of the message. For example:

BXLRRTVYLZ

The initial position changed after moving the lever to the left to the very last position. It was possible to move all ten rotors back and forth, selecting the desired key.

Most of the keys were stored only for a while (usually about a day). For new messages, new rotor initial positions were also set. They did this in order to secure the cipher as much as possible. After all, in the presence of a sufficient number of messages sent with identical settings, a competent cryptanalyst (in addition, he carefully studied several messages) could use a frequency analysis to select a cipher for the messages. It is worth remembering the principle of the initialization vector, where a similar idea was used. The initial positions were sent along with the cryptogram, in front of the cipher text. This principle was called the “indicator procedure”. Actually, these weaknesses helped to succeed with hacking into the Enigma code.

The rotor produced a fairly simple type of encryption: the elementary replacement cipher, in which the elements of the original plaintext were replaced with cipher text in accordance with the requirements.

Counting the total number of possible starting positions was relatively simple. If a military machine was taken, then 6 cipher rotors (AF) were coming out of which 4 were in the car. The output was 360 possible combinations of rotors (6 Ă— 5 Ă— 4 Ă— 3) . The same thing happened with stepped rotors (360 variations). The calculation of the total number of possible starting positions for the 10 rotors was 26 10 .

The total number of possible settings was calculated by the formula:

360 Ă— 360 Ă— 26 10 ,

which in total approximately gave:

12,359,619,140,000,000,000



Encryption and decryption of messages on NEMA could be spelled using the lamp panel, which, if necessary, was connected to the machine.



On July 9, 1992, the NEMA encryption machine was officially declassified. A few years later, on May 4, 1994, training and operational NEMAs were put up for sale. As a result, the models have expanded the ranks of acquisitions by collectors of encryption machines.

Source: https://habr.com/ru/post/275529/


All Articles