Click for homepage
Boris Hagelin
Inventor and business man

Boris Casear Wilhelm Hagelin (2 July 1892 - 7 September 1983) was a Russia-born Swedish engineer, inventor of cipher machines and businessman. He developed his first cipher machine in 1925, as a colleague of Arvid Gerhard Damm at A.B. Cryptograph in Stockholm (Sweden), of which his father, Karl Wilhelm Hagelin, and the Nobel family were investors. Hagelin eventually founded one of the largest and most successful manufacturers of cipher machines — Crypto AG.

Hagelin was born on 2 July 1892 in Adschikent, a small town near Baku in Azerbaijan, then part of the Russian Empire. He was the son of a wealthy Swedish industrialist, Karl Wilhelm Hagelin (KW), who managed the Baku oil fields for the Nobel family. As KW was a personal friend of Emanuel Nobel, it was assumed that Boris would someday take over management of the Nobel oil interests.

After an initial education in Russia, Boris was sent to Sweden, where he graduated from the Royal Technical University in Stockholm in 1914, with a degree in mechanical engineering. After his graduation he entered service with ASEA – the Swedish General Electric – to apprentice for his presumed role in the Nobel enterprises, but the Russian Revolution of 1917 intervened and Boris would never return to the Nobel oil fields.

After spending a year in the United States, Boris returned to Sweden in 1922, where Emanuel Nobel employed him at AB Cryptograph, a small company set up in 1916 to exploit the crypto­graphic ideas of the eccentric Arvid G. Damm. 1
Click to see more

Emanuel Nobel and Boris's father - Karl Wilhelm Hagelin – had invested in AB Cryptograph, and wanted Boris to protect their interests, by assuming day to day management of the firm. Apart from a womanizer, Damm was also a mechanical genius. He had developed a rotor machine – the B-1 – of which the prototype was ready in October 1919. Two B-1 machines were later built and tested by the Swedish PTT. From this, he developed a two-rotor machine – the B13 2 – of which 20 units were built in France. Some of these machines were used in the Dutch East Indies.

In 1925, Boris Hagelin became general manager of the company, and in 1928, whilst Damm was living in France, Hagelin received an order from the Swedish Government who were looking for a cipher machine that could compete with the German Zählwerk Enigma A28 (with glowlamps).

Hagelin took Damm's double-rotor machine and modified it with his own (now famous) pinwheels to control their stepping. The machine would eventually become known as the B-21 and is shown in the image on the right. Although it looks similar to Enigma, its operates differently.
B-21 without the top lid showing the interior

The pinwheels would be at the heart of all Hagelin's creations for the next 40 years. They caused a more frequent stepping of the cipher wheels, and made the machine more difficult to break. The Swedish Government accepted the design and provided the company with its first income.

Damm died on 7 November 1928 in Bayonne (France) but had not been involved much with AB Cryptograph during his final years. In 1930, the company was liquidated and the rights were transferred to the company AB Ingeniörsfirman Teknik, that had been founded by Boris Hagelin in 1928. The company didn't make much money in the small Swedish market, until the French Army came along in 1934 and bought the B-21.

Like the Enigma, the B-21 had a lamp panel for its output, but that was not wat the French Army had in mind. They wanted a faster machine, that was able to print its output directly to paper.
One of the few surviving B-211 machines. Photograph courtesy GCHQ.

Hagelin developed a rotating print head and a strip printer, and also added an electric motor to the design. He called the new machine the B-211. The machine was accepted by the French and 500 units were manufactured at the L.M. Ericsson factory in Colombes (Paris, France) prior to the outbreak of World War II. After the war, another 100 units were delivered to the French. It marked the start of a long-term relationship between Hagelin an the French Army, who also asked him to develop a portable mechanical cipher machine that would be suitable for tactical use in the field.

Hagelin took his pinwheels and combined it with a money changing machine that he designed for the Swedes a few years earlier. The French gave him a piece of wood that specified the maximum size, and Hagelin came up with a machine – the C-35 – probably named after the year — 1935.

The machine – shown in the image on the right – had five pin-wheels and a revolving cage with horizontally moving bars, with lugs at specific places. It was an immediate hit and the French promptly ordered 5000 units, providing Hagelin with enough capital to let his company flourish.
Click to see more

The B-211 (above) was also sold to other countries. The Russians even copied it after obtaining two working B-211 machines from Hagelin under threat. The cloned machine was named K-37 (Crystal) and was broken by the Americans during WWII. The Russians used it until the late 1940s.

The C-35 was succeeded by the C-36, a similar machine, but slightly larger and more robust. It had a different distribution of the lugs on the horizontal bars, and Hagelin tried to sell it to the Italians and the Americans, but both rejected it.

Hagelin first demonstrated it to William Friedman of the Army Signals Intelligence Service (SIS) in 1937. Friedman was looking for a replacement for their (insecure) M-94 hand cipher device, but found the C-36 too insecure. Hagelin tried again in 1939, but the design was rejected once more, and Hagelin went back to Sweden to improve it.
C-36 with open case - right view

Around the same time, the company – Ingeniörsfirman Teknik – was renamed AB Cryptoteknik. But before the improved machine was ready, WWII broke out and the situation in Sweden became uncertain. Hagelin persuaded the Swedish government to appoint him as a special courier, and with his wife Annie, he made his way to the US. In his luggage: two unfinished C-38 machines.

After a distressfull journey through war-torn Europe, Boris and Annie finally reached Italy, where they boarded the Conte de Savoia. It was the last ship to sail for the United States. After several days, they arrived safely in New York.

Upon arrival in the United States, Stu Hedden – Hagelin's business representative in America – was already busy selling Hagelin's latest design: the C-38. The Army wanted some modifications to the C-38, bought the rights to the improved machine and called it M-209. It would become the cryptographic workhorse of the US Army.
The converter M-209

Hagelin sold the rights to the US Government for no less than US$ 8,614,790, using Stu Hedden – his US representative – and James Paulding – a French banker – as feduciaries. 3 By the end of the war, a staggering 140,000 units had been built at the Smith & Corona typwriter plant in Syracuse (New York, USA). And by that time, Hagelin had become the first crypto-millionaire in the world.

 Continue with the history of Crypto AG

  1. It is often assumed that AB Cryptograph was owned by Arvid Gerhard Damm, but this appears not to be the case. The company was owned by Emanuel Nobel and – like Boris Hagelin – Damm was just an employee [6].
  2. In some literature, this machine is erroneously identified as the B-18, but that machine never existed. The reason for this confusion is probably the fact that Boris Hagelin made the same mistake when he wrote his memoires [2], probably misreading the '3' in his notes for an '8'.
  3. Hagelin wanted the royalties to be described as 'capital gains' which were not taxed in Sweden. Instead he payed 25% income tax in the US. His gross proceeds were US$ 2.8 million (netting at US$ 1.8 million). Pauling received US$ 430,000 and Hedden US$ 140,000. Smith & Corona made a profit of US$ 5 million.

Boris Hagelin as a young entrepreneur Boris Hagelin at his 80th birthday on  July 1972 Boris Hagelin after his retirement
1 / 3
Boris Hagelin as a young entrepreneur
2 / 3
Boris Hagelin at his 80th birthday on  July 1972
3 / 3
Boris Hagelin after his retirement

Controlled by Western intelligence
After the war, Hagelin returned to Sweden, but the restrictive export laws and high tax burden, forced him to move the company to neutral Switzerland in 1952. This also brought him closer to the action, as he recalls in his memoires. Especially the French gave him substantial orders. But from the start of the Swiss enterprise, the company was influenced by Western intelligence:


 The timeline continues in Operation RUBICON

  1. Boris Hagelin, Die Geschichte der Hagelin-Cryptos
    Original manuscript by Boris Hagelin in German language. Zug, Fall 1979.

  2. Boris Hagelin, The Story of Hagelin Cryptos
    English translation of the above. BCW Hagelin, Zug, Spring 1981. Later edited by David Kahn and published in Cryptologia, Volume 18, Issue 3, July 1994, pp 204-242.

  3. Hans Stadlin, 100 Jahre Boris Hagelin 1892-1992 (German)
    Crypto AG. Crypto Hauszeitung Nr. 11. Jubilieumausgabe September 1992.
  1. Declassified by NSA on 17 June 2014 (EO 13526).

  1. Wikipedia, Boris Hagelin
    Retrieved July 2015.

  2. Boris Hagelin, Die Geschichte der Hagelin-Cryptos
    Original manuscript by Boris Hagelin in German language. Zug, Fall 1979.

  3. Boris Hagelin, The Story of Hagelin Cryptos
    English translation of the above. BCW Hagelin, Zug, Spring 1981. Later edited by David Kahn and published in Cryptologia, Volume 18, Issue 3, July 1994, pp 204-242.

  4. Crypto Museum, The Gentleman's Agreement
    30 July 2015.

  5. Crypto Museum, Operation RUBICON
    February 2020.

  6. Anders Wik & Kjell-Ove Widman, Damm och AB Cryptograph
    FRA historiska skrifter #27. Bromma, 2017. 40 pages.
Further information
Any links shown in red are currently unavailable. If you like the information on this website, why not make a donation?
Crypto Museum. Created: Friday 23 August 2019. Last changed: Tuesday, 16 June 2020 - 08:18 CET.
Click for homepage