# KL-7

The TSEC/KL-7, also known as Adonis was an off-line non-reciprocal rotor encryption machine.$^{:p.33ff}$ The KL-7 had rotors to encrypt the text, most of which moved in a complex pattern, controlled by notched rings. The non-moving rotor was fourth from the left of the stack. The KL-7 also encrypted the message indicator.

## History and development

In 1945, the Army Security Agency (ASA) initiated the research for a new cipher machine, designated MX-507, planned as successor for the SIGABA and the less secure Hagelin M-209. In 1949, its development was transferred to the newly formed Armed Forces Security Agency (AFSA) who named the machine AFSAM-7, which stands for Armed Forces Security Agency Machine No 7.
It was the first rotor crypto machine, developed under one centralized cryptologic organisation as a standard machine for all parts of the armed forces, and the first cipher machine to use electronics (vacuum tubes), apart from the British ROCKEX, which was developed during World War 2. It was also the first cipher machine to use the re-entry (re-flexing, not to be confused with reflector) principle, conceived by Albert W. Small, which re-introduces the encryption output back into the encryption process to re-encipher it again, so that some symbols are ciphered more than once.
In 1953, AFSA's successor, the U.S. National Security Agency, introduced the machine in the US Army and Air Force, the FBI and CIA. In 1955, the AFSAM-7 was renamed TSEC/KL-7, following the new standard crypto nomenclature. It was the most widely used crypto machine in the US armed forces until the mid-1960s and was the first machine capable of supporting large networks that was considered secure against known plaintext attack. Some 25,000 machines were in use in the mid-1960s.$^{:p.37}$ From 1956 on, the KL-7 was also introduced to all NATO countries.
The KL-7 used two encryption procedures, codename POLLUX and ADONIS. The POLLUX procedure sent the message indicator (i.e. start position of the rotors) in clear, and ADONIS sent the message indicator in encrypted form.

## Description

The KL-7 was designed for off-line operation. It was about the size of a Teletype machine and had a similar three-row keyboard, with shift keys for letters and figures. The KL-7 produced printed output on narrow paper strips that were then glued to message pads. When encrypting, it automatically inserted a space between five-letter code groups. One of the reasons for the five letter groups was messages might be given to a morse code operator. The number of five letter groups was easily verified when transmitted. There was an adaptor available, the HL-1/X22, that allowed 5-level Baudot punched paper tape from Teletype equipment to be read for decryption. The standard KL-7 had no ability to punch tapes. A variant of the KL-7, the KL-47, could also punch paper tape for direct input to teleprinters.

## Product details

Each rotor had 36 contacts. To establish a new encryption setting, operators would select a rotor and place it in a plastic outer ring at a certain offset. The ring and the offset to use for each position were specified in a printed key list. This process would be repeated eight times until all rotor positions were filled. Key settings were usually changed every day at midnight, GMT. The basket containing the rotors was removable, and it was common to have a second basket and set of rotors, allowing the rotors to be set up prior to key change. The old basket could then be kept intact for most of the day to decode messages sent the previous day, but received after midnight. Rotor wiring was changed every 1 to 3 years.$^{:p.36}$
The keyboard itself was a large sliding switch, also called permutor board. A signal, coming from a letter key, went through the rotors, back to the permutor board to continue to the printer. The KL-7 was non-reciprocal. Therefore, depending on the Encipher or Decipher position of the permutor board, the direction of the signal through the rotors was changed.
The rotor basket had two sets of connectors, two with 26 pins and two with 10 pins, at each end that mated with the main assembly. Both 26 pin connectors were connected to the keyboard to enable the switching of the signal direction through the rotors. Both 10 pin connectors on each side were hard-wired with each other. If a signal that entered on one of the 26 pins left the rotor pack on one of these 10 pins, that signal was redirected back into the rotors on the entry side to perform a new pass through the rotors. This loop-back, the so-called re-entry, created complex scrambling of the signal and could result in multiple passes through the rotor pack, depending on the current state of the rotor wiring.
There was also a switch pile-up under each movable rotor that was operated by cams on its plastic outer ring. Different outer rings had different arrangements of cams. The circuitry of the switches controlled solenoids which in turn enabled the movement of the rotors. The combination of cam rings and the controlling of a rotor by several switches created a most complex and irregular stepping. The exact wiring between switches and solenoids is still classified.
The KL-7 was largely replaced by electronic systems such as the KW-26 ROMULUS and the KW-37 JASON in the 1970s, but KL-7s were kept in service as backups and for special uses. In 1967, when the U.S. Navy sailor John Anthony Walker walked into the embassy of the Soviet Union in Washington, DC seeking employment as a spy, he carried with him a copy of a key list for the KL-47. KL-7s were compromised at other times as well. A unit captured by North Vietnam is on display at NSA's National Cryptologic Museum. The KL-7 was withdrawn from service in June 1983, and Canada's last KL-7-encrypted message was sent on June 30, 1983, "after 27 years of service."
The successor to the KL-7 was the KL-51, an off-line, paper tape encryption system that used digital electronics instead of rotors.