By then, according to Polish military historian Władysław Kozaczuk, the Bureau had been formed by merger of the Radio Intelligence Office and the Polish-Cryptography Office. Langer remained at the head of the Cipher Bureau and its successor field agency until the latter was effectively disbanded in November 1942 upon the German occupation of southern France's Vichy "Free Zone."
Major Langer had on January 15, 1929, after a tour of duty as chief of staff of the First Infantry Division, become chief of the General Staff's Radio Intelligence Office, and subsequently of the Cipher Bureau.
As the Cipher Bureau's chief, Langer was ultimately responsible for Polish cryptography; Polish military-intelligence radio communications; radio intelligence and tracking down of clandestine enemy intelligence radio transmitters operating in Poland; Russian-cryptogram interception and decryption; and German-cryptogram interception and decryption.
In March 1943, as Lt. Col. Langer, his deputy, Major Maksymilian Ciężki, head of the prewar B.S.-4 (the Bureau's German section), Lt. Antoni Palluth and civilians Edward Fokczyński and Kazimierz Gaca were attempting to cross from German-occupied France into Spain, they were betrayed by their French guide and captured by the Germans.
Interrogated about work on Enigma, Langer "decided [to] mix truth with lies, and [...] present my lies in such a way that they had the veneer of truth." He told the Germans that before the war the Bureau had sporadically solved Enigma ciphers, but that during the war they had no longer been able to. Langer advised the panel of his interrogators that, since Major Ciężki knew more about the subject than he, they should summon Ciężki. "They agreed, and Ciężki managed to convince them that the changes [that the Germans had] made [to the machine and its operating procedures] before the war made decryption during the war impossible." The two Polish officers thus succeeded in protecting the secret of Allied Enigma decryption, thereby enabling Ultra to continue doing its vital work for Allied victory.
After Langer and Ciężki had been liberated by the Allies and had reached Britain, Langer was crushed to find himself blamed for his men's capture by the Germans. He died at the Polish Army Signals camp at Kinross, Scotland, on 30 March 1948 and was buried in an unmarked grave at Wellshill, Perth, Scotland. On 1 December 2010 his body was exhumed, and on 10 December it was interred at the Communal Cemetery in Cieszyn, Poland.
- Grand Cross of the Order of Polonia Restituta (posthumously in 2010)
- Cross of Valour - twice
- Gold Cross of Merit
- Cross of Independence
- Medal Międzysojuszniczy "Medaille Interalliée"
 See also
|Methods and technology|
Chief of Radio Intelligence
Chief of German Section
German Section cryptologists Wiktor Michałowski
Chief of Russian Section
Russian Section cryptologist
- Władysław Kozaczuk, Enigma: How the German Machine Cipher Was Broken, and How It Was Read by the Allies in World War Two, edited and translated by Christopher Kasparek, Frederick, MD, University Publications of America, 1984, ISBN 0-89093-547-5.
- Hugh Sebag-Montefiore, Enigma: the Battle for the Code, London, Weidenfeld & Nicolson, 2000, ISBN 0-297-84251-X.