Operation "Ultra", or the Story of how the Poles with the British "Enigma" hacked. 1 part

25
Enigma was widely used in World War II. It was the most common encoder in Germany, Italy, Japan and even in neutral Switzerland. The “fathers” of the legendary encryption machine, whose name means “riddle” in Greek, were Dutchman Hugo Koch (inventor of the encryption disk) and German engineer Arthur Sherbius, who patented the encryption machine back in 1918 year.

Operation "Ultra", or the Story of how the Poles with the British "Enigma" hacked. 1 part

Arthur Sherbius is the author of Enigma. Source: lifeofpeople.info



Initially, there was no talk about any military career of “Enigma” - it was a typical commercial product. There was even a wide advertising campaign initiated by Scherbius to promote his own product. So, in 1923, the encryption device became an exhibit at the congress of the International Postal Union, but did not succeed. The reason was the high price of the Enigma and the impressive dimensions of the Sherbius machine. Nevertheless, several copies were sold to armies of various countries and communications companies. The British first encountered the Enigma device in June 1924, when the manufacturer offered the British to buy a batch of devices at a price of 200 dollars apiece for that time. The UK government, in response, offered to register an encryption novelty at the patent office, which automatically led to the provision of full documentation for the equipment. The Germans took this step and the British cryptographers got at their disposal all the technical nuances of the Enigma long before the Second World War.


Patent for Enigma. Source: lifeofpeople.info

True, it is worth noting that Enigma was in an early commercial version that the Germans did not use in their army. The rise of the German cryptographic machine to Olympus began with the advent of Adolf Hitler to power in 1933, when the rearmament of the army began. The total number of Enigma vehicles produced until the end of World War II, according to various sources, varies from 100 thousand to 200 thousand. They were used everywhere - in the Wehrmacht, in kriegsmarine, in the Abwehr, in the Luftwaffe and in the fascist security services.


"Enigma" later version. Source: w-dog.ru

What is the basis of the device encoder? In the very first generation, there were three rotating in the same plane drum (disk or wheel), on each side of which there were 26 electrical contacts - exactly the number of letters in the Latin alphabet. Contacts on both sides were connected inside the 26 drive by wires that formed the replacement of characters when typing. The three disks in the assembly process were folded together, touched each other with contacts, which ensured the passage of electrical impulses through the entire set of drums to the recording device. The Latin alphabet itself was printed on the side surface of each drum. Getting started with the Enigma-transmitter was marked by a set of code words from the letters on the drums. It is important that the receiving device is also configured with the same code word.


Field encryption machine "Enigma". Source: musee-armee.fr

Next, the operator responsible for entering text for encryption, typing on his keyboard, with each press causes the left disk to rotate one step. The Enigma was an electromechanical machine, so all commands of the mechanical part were given using electrical signals. After the left disk was turned on one turn, the central drum came into action and so on. Such rotation of the discs created for each character of the text its own unique contour for the passage of an electrical impulse. The signal then passed through a reflector, which was the 13 conductor connecting the pair of contacts on the back of the third disk. The reflector unwrapped the electrical signal back into the drums, but in a completely different way. And it was only here that a light bulb flashed near the letter of the already encrypted text. Such "adventures" of the electric signal provided a unique security of the communication channel for its time.












The military version of the "Enigma" with four drums. Source: e-board.livejournal.com

Given the further improvements that the Germans made to Enigma, British cryptanalysts could never have “hacked” such a perfect machine on their own. At first, three people worked with the Enigma: one read the text, the second typed on the keyboard, and the third wrote down the encryption of the lights. Over time, the size of the encryption device decreased to the size of a typewriter, which allowed sending messages from virtually every trench. Also, during the modernization of the Germans added a printing device for typing encrypted text. What else did engineers of the Third Reich cryptographers add to the Enigma? In 1930, a switchboard of 26 pairs of sockets and plugs appeared, which additionally replaced the plaintext characters after the main encryption on the drums. It was a purely military improvement — there was no such thing on commercial options. The long-term key of the encoder, which formed the switching of disks due to the rearrangement of 26 elements, is astronomical 4x1026 options! Now the software capabilities of a computer make it easy to sort through such a number of options, but for the 30-40-s it was unlikely and long. Also, the set of five Enigma disks (which were all different), of which only three were installed on the device at a time, complicated the picture of encryption. They can be shuffled in any order, that is, there were only 10 installation options on one machine. To get started, a single key offered 26 character variants for each disk, and for three already 26 ^ 3 = 17576. And, finally, the regularly replaced plug-in switching circuit completely complicated the work for the cryptanalytic services of the enemies of Nazi Germany. Later they began to add additional drums to the structure. However, despite this, Enigma learned to fully “read” at the very beginning of World War II.

One of the best cryptanalysts before the big war was the Poles. Even during the civil war in Russia and the Soviet-Polish conflict, the Poles successfully deciphered messages from the Soviet army and diplomats. Thus, the 2 th division (cryptanalysis) of the Polish General Staff in August 1920 “translated” from telegrams encrypted into Polish 410, signed by Trotsky, Tukhachevsky, Hai and Yakir. Moreover, during the offensive of the Red Army in Warsaw, the Poles misled Tukhachevsky's troops, which forced him to retreat to Zhytomyr. Over time, the natural interest of Poland's cryptanalyst shifted to Germany at an alarming rate. The Polish Cipher Bureau was a fairly efficient structure at that time and included four departments:

- A division of Polish ciphers responsible for protecting state communication lines;
- radio intelligence unit;
- Russian cipher division;
- A division of German ciphers.


Saxon Palace in Warsaw, where the General Staff and the Bureau of Encryption were located. Photo 1915 of the year. Source: photochronograph.ru

In many ways, therefore, it is the Poles who have achieved the first success in deciphering "Enigma". Around the 1926 year, they began to intercept German messages on the radio, encrypted in a way that was not previously known. A little later, in 1927 or 1929, an attempt to smugg an Enigma box into a German diplomatic consulate was made through Germany’s customs. How did this happen and why did the Germans not send the device to a closed diplomatic channel? Nobody will answer this right now, but the Poles have studied the device in detail - this was done by the guys from the radio engineering company AVA, which had long been working with Polish intelligence. After a thorough acquaintance, the Enigma was handed over to unsuspecting German diplomats. Of course, the device of the commercial version of the encryption machine could do little for the Polish cryptanalyst, but a start was made. Every year, the Poles strengthened their service of “hacking” German codes - in 1928-1929, the University of Poznan organized courses on learning cryptography for students of mathematics with knowledge of the German language. Three talented students stood out: Mariann Razhevsky, Heinrich Zygalsky and Jerzy Razitsky.


Mariann Razhevsky is a leading cryptanalyst of pre-war Poland. Source: lifeofpeople.info

All of them were subsequently taken to the special services, and they were the first to receive the results of the deciphering of the Enigma. In many ways, it was the Poles who were the first to understand the importance of attracting mathematicians for cryptanalysis of enemy ciphers. Poland in general in 20-30-ies was almost the world leader in the field of cryptography, and experts were often invited to share their experience in other countries. Observing the framework of secrecy, of course. The captain of the Polish army and a specialist on codes, Jan Kovalevsky traveled to Japan for this purpose, and then worked with a group of students from this country in his home country. And he brought up Rizobar Ito, a large Japanese cryptographer who uncovered the Playfair English cipher system used in the 30s on British lines of communication. A little later, another potential German enemies, the French, began to help the Poles.
Our news channels

Subscribe and stay up to date with the latest news and the most important events of the day.

25 comments
Information
Dear reader, to leave comments on the publication, you must sign in.
  1. +7
    13 September 2018 05: 32
    I love cryptography, especially after the war. To the author, please, if you can cover the story on encryption systems in other countries, the USSR, the USA, Great Britain. Thank you very much.
    1. +15
      13 September 2018 05: 33
      OK. I'll try)
      1. +4
        13 September 2018 06: 11
        Quote: Yevgeny Fedorov
        OK. I'll try)

        I express my deep respect, very interesting.
      2. +3
        13 September 2018 17: 43
        I watched a TV show like that, so there they explained how the British could decipher. The Germans ended all programs with the words: Heil Hitler. (I think there is no need to translate). That was their mistake.
        1. +2
          13 September 2018 19: 58
          Yes, this very phrase allowed Alan Turing to build the mathematical model that formed the basis for the creation of the "Turing bombe", an electronic-mechanical machine that cracked the code of the four-disk "Enigma". I apologize, Evgeny, slightly spoiled, could not resist.
        2. 0
          2 November 2018 02: 31
          This is not true. In fact, Bletcher Park analysts began to split Enigma based on weather reports regularly transmitted by German submarines. And there the messages always started with the same phrase. Which, however, does not change the essence
      3. +3
        13 September 2018 20: 06
        Hopefully there will be material about the windspeakers. an ingenious solution in its simplicity!
        1. +2
          14 September 2018 11: 04
          And why did the USSR not think of using the indigenous peoples of the north for such purposes?
          1. 0
            14 September 2018 21: 24
            Yes FIG knows.
  2. +2
    13 September 2018 05: 49
    Thanks for the interesting article, but in Germany there was still Nazism and not fascism.
    1. +1
      13 September 2018 06: 10
      Quote: Conductor
      in Germany there was still Nazism and not fascism.

      Unfortunately, this has become a cliche despite the fact that National Socialism is several times worse than fascism ...
      1. +1
        13 September 2018 07: 57
        I agree, and the cliche has gone already since the 20s of the last century, everything was the same at that time Mussolini’s fascism was already in power, and Nazism was just beginning to move, but very fast. You can also recall, like the 5th Congress of the Comintern, and Zinoviev’s words about social fascism, and they were said mainly in relation to Germany.
      2. 0
        13 September 2018 08: 40
        not surprising. In the USSR, they could not admit that the Germans had a National Socialist Workers Party led by ....
        1. +3
          13 September 2018 15: 57
          If on the cage of an elephant you see the inscription Buffalo - do not believe your eyes. Also on the mess building you can write a school, or massage. It's not about the inscriptions, but what is hiding behind them. For example: Work makes free; To each his own. And so on, the inscriptions at the entrance to the concentration camps.
  3. +2
    13 September 2018 08: 24
    On the basis of Enigma, encryption machines were created in England, the USA, and Japan; there are attempts to improve these days.
  4. 0
    13 September 2018 08: 36
    Enigma's cryptographic strength was not very high.
    For commercial purposes, it was quite suitable, hacking it was not worth the profit received from this, and for the military it could be used only for information of current importance only.
    The Germans made a mistake in assessing her stamina - and paid for it.
    As for the Poles, the level of technological development in pre-war Poland is somehow greatly underestimated
  5. +1
    13 September 2018 08: 57
    Interestingly, I have never seen the "German" QWERT keyboard layoutZ
    And by the way
    1. 0
      2 November 2018 02: 24
      The German keyboard layout is slightly different from conventional English - in place of the letter Y is the letter Z
  6. +3
    13 September 2018 10: 19
    read with pleasure, thanks
  7. -1
    13 September 2018 10: 32
    The topic is interesting, photos too, but reading is very difficult ...
  8. BAI
    +2
    13 September 2018 13: 35
    Interestingly, I did not know about the involvement of the Poles in decoding Enigma.
  9. +2
    13 September 2018 16: 23
    Interesting article.
  10. +2
    15 September 2018 14: 31
    Another thing is not clear: the Germans had to be confused with encryption technology when the universal, 100% protected from hacking and simple to ugliness means cipher blocks with one-time code pages (RKKA and NKVD standards) were already used all over the world?

    This encryption method cannot be decrypted even by modern supercomputers, not to mention the Polish, British, and other mathematicians of the 1930-1940-s model.
  11. +1
    12 October 2018 20: 23
    Very interesting article. Thanks to the author
  12. 0
    25 October 2018 18: 13
    This system subsequently became the basis for our T-600 special equipment, as I understand it. Thanks to the author for an interesting story!

"Right Sector" (banned in Russia), "Ukrainian Insurgent Army" (UPA) (banned in Russia), ISIS (banned in Russia), "Jabhat Fatah al-Sham" formerly "Jabhat al-Nusra" (banned in Russia) , Taliban (banned in Russia), Al-Qaeda (banned in Russia), Anti-Corruption Foundation (banned in Russia), Navalny Headquarters (banned in Russia), Facebook (banned in Russia), Instagram (banned in Russia), Meta (banned in Russia), Misanthropic Division (banned in Russia), Azov (banned in Russia), Muslim Brotherhood (banned in Russia), Aum Shinrikyo (banned in Russia), AUE (banned in Russia), UNA-UNSO (banned in Russia), Mejlis of the Crimean Tatar people (banned in Russia), Legion “Freedom of Russia” (armed formation, recognized as terrorist in the Russian Federation and banned), Kirill Budanov (included to the Rosfinmonitoring list of terrorists and extremists)

“Non-profit organizations, unregistered public associations or individuals performing the functions of a foreign agent,” as well as media outlets performing the functions of a foreign agent: “Medusa”; "Voice of America"; "Realities"; "Present time"; "Radio Freedom"; Ponomarev Lev; Ponomarev Ilya; Savitskaya; Markelov; Kamalyagin; Apakhonchich; Makarevich; Dud; Gordon; Zhdanov; Medvedev; Fedorov; Mikhail Kasyanov; "Owl"; "Alliance of Doctors"; "RKK" "Levada Center"; "Memorial"; "Voice"; "Person and law"; "Rain"; "Mediazone"; "Deutsche Welle"; QMS "Caucasian Knot"; "Insider"; "New Newspaper"