Fialka: How the Soviet M-125 Cipher Machine Rebuilt the Rotor Idea
The Soviet M-125 Fialka used ten counter-rotating rotors, a punched key card, and a deliberate fix for Enigma's best-known flaw. What is documented about it, and what is still unknown.
By Wonders & Marvels Research Desk · Published · 10 min read
For most of the Cold War, the cipher machine used by Soviet and Warsaw Pact armed forces and security services was kept secret from the West.123 Its Soviet codename was Fialka (Фиалка, “violet”), its designation M-125, and its design was an answer to a question every postwar cryptographer was asking: if the German Enigma could be broken, what would a rotor machine have to look like to survive?
The answer the Soviet engineers produced kept Enigma’s basic architecture but changed nearly everything around it. This article sets out what the surviving machines and the specialists who have studied them can tell us, and marks clearly where the record runs out.
Origins and dates: what the sources say
The basic outline is not in dispute. Fialka was an electromechanical rotor cipher machine built in the Soviet Union after the Second World War and issued to the armed forces and governments of the Warsaw Pact.1 The details of when it appeared vary from source to source, and the variation is worth stating plainly.
Crypto Museum, the Dutch collection run by Paul Reuvers and Marc Simons whose research underpins most of what is publicly known about the machine, says the M-125 was developed in the mid-1950s and introduced around 1956.14 A 2019 essay by Anna Borshchevskaya, published in Foreign Policy, also gives 1956 and says Fialka replaced an earlier Soviet machine called Albatross.5 A 2011 Air Force Association report on an M-125 lent to a U.S. Air Force heritage center says the machine was used in the Soviet Union “from the late 1950s until that country’s collapse in 1991.”6
The most defensible summary is that the M-125 was in service by the second half of the 1950s, with 1956 the date most often given. An improved model, the M-125-3, followed in the mid-1960s.7
The end date is similarly approximate. Borshchevskaya writes that Fialka remained in use “until the early 1990s,” while the Air Force Association report ties its use to the Soviet collapse in 1991.56 No source located for this article gives documented retirement dates country by country.
Inside the machine: ten rotors and a punched card
At the heart of every Fialka is a drum of ten cipher rotors, more than double Enigma’s three or four. Each rotor has 30 contacts on each side, matching the 30 characters the machine handles; the M-125 was designed around the Russian language and the Cyrillic alphabet.41 Each of the ten rotors is wired differently.4
Each rotor carries scrambled internal wiring between its two faces and, on its rim, a set of metal pins. On the original rotors, issued from 1956, that wiring was fixed and could not be changed in the field. From 1978 a new procedure known as PROTON-2 brought adjustable rotors, found mainly with the M-125-3: their wiring core could be removed, turned to any of 30 positions, flipped over, or moved into another rotor, and their letter ring could be shifted much like Enigma’s ring setting.8 On both types, the presence of a pin at a given position stops the wheel two places further along from stepping: wheel 2 controls wheel 4, wheel 4 controls wheel 6, and so on, while among the odd-numbered wheels wheel 9 controls wheel 7, wheel 7 controls wheel 5, and so on. That is why Crypto Museum calls them “advance blocking pins.”48 Two of the wheels, numbers 2 and 9, advance on every key press.4 The result is irregular stepping, quite unlike Enigma’s largely regular, odometer-like advance.
A second departure is that adjacent wheels turn in opposite directions. Seen from above, according to Crypto Museum, odd-numbered wheels move toward the front of the machine and even-numbered wheels toward the rear.49
Before reaching the rotors, the electrical signal passes through a card reader on the left side of the machine. The reader holds a punched card laid out as a 30 by 30 matrix that rewires the 30 lines into a new permutation. Crypto Museum describes it as a substitute for Enigma’s plugboard, and notes that a new card was installed daily as part of the key.710 Because protocol required the cards to be destroyed after use, very few originals survive.10
The machine was also a self-contained teleprinter terminal. It punched its output onto paper tape, printed it, and could read tape back in.4 On the original M-125, printing could not be switched off in punch mode, so tapes carried both holes and printed text.4 Both models also had a 5-bit digital output at the rear that could drive telegraph equipment or a transmitter directly, and both ran from a separate power supply unit; the standard unit accepted a wide range of mains voltages or a 24-volt DC supply such as a truck’s electrical system.4711 The M-125-3’s main operational addition was better handling of numbers: a mixed mode for letters and numbers, switched with letter-shift and number-shift keys, and a numbers-only mode. Crypto Museum’s list of its other additions includes a paper tape transmitter, an improved chad box, an extra usage counter, a test socket, and the adjustable wheels described above.7
The fix for Enigma’s famous weakness
Fialka, like Enigma, uses a reflector: a fixed component at the end of the rotor stack that sends the current back through the rotors by a different path. In Fialka the reflector cannot be removed, and it connects the contacts in pairs, which makes the machine reciprocal (in principle the same setting both encrypts and decrypts; in practice Fialka has separate coding and decoding modes because of the magic circuit described below).1213
On Enigma, that reflector had a well-known side effect. Because the current always returns by a path different from the one it entered on, a letter can never be encrypted as itself.13 Polish and British codebreakers exploited that rule heavily.14
Fialka’s designers removed the guarantee deliberately. Crypto Museum describes what it calls the “magic circuit”: one wire pair in the reflector is broken, and one contact (number 13) is used to override the encoding so that a letter can come out as itself; a second pair is also broken so that three wires can feed the small extra circuit that gives it its name.13 Isolating that contact leaves 29, an odd number that cannot all be paired.12 The machine therefore partly gives up perfect reciprocity in exchange for removing a pattern an attacker could use, and Crypto Museum puts the chance of any given letter enciphering to itself at 1 in 30.9
So the frequently repeated summary “Fialka is a bigger Enigma” captures the family resemblance but misses the point. It shares the reflector and rotor concept, but adds:
- ten rotors instead of three or four;
- irregular, pin-controlled stepping;
- adjacent rotors turning in opposite directions;
- a daily punched-card permutation in place of a plugboard;
- a circuit that allows a letter to encrypt to itself.
One design, many national machines
Fialka was issued across the Warsaw Pact, but not as a single interchangeable machine. According to Crypto Museum, each country received its own keyboard, print head, and rotor wiring.1 On the M-125-3 keyboards, Cyrillic characters sit in the same positions on every variant, while the Latin characters are arranged differently from country to country.11 Most of the earlier M-125s could be switched between Russian and Latin operation; a Russian-only version also existed.41
Crypto Museum’s list of M-125-3 variants is built on the Russian base model, the M-125-3M, and includes the M-125-3MR2 for Poland, M-125-3MN for East Germany, M-125-3MR3 for Czechoslovakia, and a Hungarian version whose model suffix is still unknown (Crypto Museum lists it as M-125-3MPx).7 The Polish machine has a keyboard with Polish letters and its own print head and uses wheels with the prefix 3K; the Czechoslovak machine is electrically identical but has a different keyboard, print head, and 6K wheels.11 Crypto Museum reports finding rotor sets with five prefixes (68, 3K, 5K, 6K, and 7K) and says it has identified the countries for only some of them.1 A rough way to tell the generations apart: most M-125s have rounded key tops and most M-125-3s square ones, although the Russian-only M-125-3M also has rounded keys.147
The national wiring had a practical consequence. Allied states could not read one another’s peacetime traffic on their own sets. Crypto Museum adds that if war with the West had become imminent, a common rotor set would have been distributed to all Warsaw Pact members, though as far as it knows the common rotors were never released.128 That claim rests on Crypto Museum’s account; this article did not locate the underlying Soviet documentation.
Use beyond Europe is less certain. Crypto Museum describes Fialka as a favorite of the Warsaw Pact “and some allied nations, such as Cuba,” but its own list of user countries marks Cuba as “likely but not certain.”1 Borshchevskaya refers more generally to “Warsaw Pact and other communist nations.”5 No archival record of a full list of user states has been published.
From secret to museum piece
When the Soviet forces withdrew from Central and Eastern Europe, the machines were largely recovered and destroyed. Crypto Museum says only a small number escaped destruction and have since reached collectors and museums.1
How the public record came to exist is a story of private research more than official release. Reuvers and Simons began studying Fialka in 2005, when, by their account, no technical information about it was available. Their Fialka Reference Manual, first published in 2005 and expanded to version 2.0 in 2009, runs to more than 140 pages covering the machine’s history, wheel wiring, and key cards, and has been free to download since 2021.3 Crypto Museum has continued to add material as machines surface. In late 2017 it reported examining an original Russian M-125-3 with its original Russian cipher wheels, a machine said to have been given to a senior KGB official on his retirement.15
Accounts found online often say that Russia declassified information about the machine in 2005. That date coincides with the start of the Crypto Museum project, and this article did not find an official Russian document recording a formal declassification. Reuvers himself wrote in January 2006 that the machine “still isn’t officially declassified by the Russian authorities.”3 The safer statement is that detailed information became public from about 2005, largely through Western collectors’ work on surviving machines.
Today Fialkas can be seen in several public collections. The German Spy Museum in Berlin displays an M-125-3 with a Polish keyboard and presents it as the Soviet counterpart to Enigma.14 In 2011 the National Cryptologic Museum at Fort Meade, Maryland, lent an M-125 to the Air Force ISR Agency’s heritage center at Joint Base San Antonio, where it joined an Enigma and a SIGABA.6
What remains unknown
The single largest open question is whether any Western agency read Fialka traffic. The Fialka Reference Manual addresses it in a short section titled “Breaking Fialka.” It reports, from the authors’ 2005 interview with a former East German Fialka operator, that Russian crypto experts believed up to 1989 that an outsider could read Fialka messages after about 24 hours. It states that Israel captured some Fialka machines during the 1967 Six-Day War, and that by the 1970s the NSA had developed software on a “super computer” that let it read Fialka messages relatively quickly. For the NSA claim the manual’s only reference is “Various undisclosed sources,” which it describes as at least three anonymous sources, and it adds that whether NATO took part in any codebreaking effort “is still unknown.”3 No declassified U.S. or NATO document confirming a break has been published. Versions found online that say the NSA itself captured a machine in 1967 appear to garble the manual’s account, which credits the capture to Israel.
Other gaps are narrower. The exact service entry date, the full list of user states, the identity of every rotor-prefix series, and the operational procedures behind the daily key cards are known only in part, and much of what is known comes from one dedicated research team working from the hardware. That team’s work is careful and openly documented, but independent, peer-reviewed analysis of the machine’s security remains scarce. A notable exception is a 2015 paper in the journal Cryptologia by Eugen Antal and Pavol Zajac, which builds a mathematical model of the Fialka cipher and analyzes how the blocking-pin settings affect its period.16 For a device that once guarded the communications of an entire military alliance, Fialka is still, in important respects, only half declassified.
Footnotes
-
Crypto Museum, “Fialka” overview page. ↩ ↩2 ↩3 ↩4 ↩5 ↩6 ↩7 ↩8 ↩9 ↩10
-
Crypto Museum, “Fialka M-125-3M” (Russian variant) page. ↩
-
Reuvers and Simons 2009, Fialka Reference Manual 2.0 (preface dated January 2006; chapter 1.1; section 1.2.2, “Breaking Fialka,” p. 12; Appendix A, references [3] and [9]), and its Crypto Museum description page. ↩ ↩2 ↩3 ↩4
-
Crypto Museum, “Fialka M-125.” ↩ ↩2 ↩3 ↩4 ↩5 ↩6 ↩7 ↩8 ↩9 ↩10 ↩11
-
Borshchevskaya 2019, “The Soviets’ Unbreakable Code” (excerpt reposted by the National Cryptologic Foundation). ↩ ↩2 ↩3
-
Air Force Association 2011, “Cold War Cipher Machine Goes on Display.” ↩ ↩2 ↩3
-
Crypto Museum, Czechoslovak and Polish M-125-3 variant pages. ↩ ↩2 ↩3
-
Crypto Museum, News 2017. ↩
-
Antal and Zajac 2015, “Key Space and Period of Fialka M-125 Cipher Machine,” Cryptologia 39(2): 126-144, doi:10.1080/01611194.2014.915264 (abstract consulted). ↩
Sources
- Crypto Museum (Reuvers, P. & Simons, M.). Fialka M-125 [overview page]. Crypto Museum, Eindhoven. cryptomuseum.com/crypto/fialka Used for: Introduction around 1956; ten rotors of 30 contacts; country-specific wiring and keyboards; rotor prefixes 68, 3K, 5K, 6K, 7K; use by the Warsaw Pact and 'some allied nations, such as Cuba', with Cuba marked 'Likely but not certain'; destruction of machines and survival of a few with collectors and museums; key-top exception for the M-125-3M; list of peer-reviewed papers.
- Crypto Museum (Reuvers, P. & Simons, M.). Fialka M-125. Crypto Museum. cryptomuseum.com/crypto/fialka/m125 Used for: Development in the mid-1950s; 30-character Cyrillic design; ten differently wired wheels with stepping pins; wheels 2 and 9 advance on every key press; odd and even wheels moving in opposite directions; printer always on in punch mode; 5-bit data output already on the M-125; standard PSU for mains AC or 24 V DC; Russian/Latin switching on the M-125; round key tops.
- Crypto Museum (Reuvers, P. & Simons, M.). Fialka M-125-3. Crypto Museum. www.cryptomuseum.com/crypto/fialka/m125_3 Used for: M-125-3 as mid-1960s successor; 5-bit output and PSU shared with the M-125 ('Like its predecessor'); improvements: Mixed Mode, Numerical Mode, adjustable wheels; M-125-3M as base Russian version; country variants M-125-3MR2 (Poland), M-125-3MN (East Germany), Hungary (suffix unknown, listed as M-125-3MPx), M-125-3MR3 (Czechoslovakia); square keys; card reader as 30 x 30 matrix.
- Crypto Museum. Fialka block diagram. Crypto Museum. cryptomuseum.com/crypto/fialka/block.htm Used for: Ten wheels with irregular stepping; adjacent wheels rotate in opposite directions; 1-in-30 chance that a letter enciphers to itself.
- Crypto Museum. Fialka: The Magic Circuit. Crypto Museum. cryptomuseum.com/crypto/fialka/magic.htm Used for: Enigma's reflector prevents a letter enciphering to itself; Fialka breaks one contact pair and uses contact 13 to override the matrix so a letter can become itself.
- Crypto Museum. Fialka wiring. Crypto Museum. www.cryptomuseum.com/crypto/fialka/wiring.htm Used for: Fixed reflector that pairs contacts and makes the machine reciprocal; isolating contact 13 leaves 29 contacts that cannot all be paired, so separate tables are needed for coding and decoding; common rotor set to be distributed if war with the West was imminent, never released as far as Crypto Museum knows.
- Crypto Museum. Fialka key card. Crypto Museum. cryptomuseum.com/crypto/fialka/card.htm Used for: 30 x 30 punched key card; cards destroyed after use per protocol; very few originals survive.
- Reuvers, P. & Simons, M. (2009). FIALKA M-125: Detailed Description of the Russian Fialka Cipher Machines (Fialka Reference Manual, version 2.0, 22 June 2009; first published 2005). Eindhoven: PAHJ Reuvers & MJH Simons. ISBN 9789079991013. cryptomuseum.com/crypto/fialka/man.htm Used for: Existence, authorship, and scope of the principal technical reference; first published 2005, version 2.0 in 2009; free download from 2021; no technical information available when the authors began; preface (January 2006): the machine 'still isn't officially declassified by the Russian authorities'; ch. 1.1: kept secret by the Russians for a long time; section 1.2.2 'Breaking Fialka': Russian experts believed until 1989 that an outsider could read Fialka messages after about 24 hours (ref. [3], 2005 interview with former DDR operator Jörg Drobick); Israel captured some Fialka machines in the 1967 Six-Day War; by the 1970s the NSA had software on a 'super computer' that could read Fialka messages relatively quickly (ref. [9], 'Various undisclosed sources', said in Appendix A to be at least three anonymous sources); NATO participation unknown.
- Deutsches Spionagemuseum Berlin. The M-125-3 Fialka cipher machine: the Russian Enigma [collection object page]. www.deutsches-spionagemuseum.de/en?p=2177 Used for: Museum display of an M-125-3 with a Polish keyboard; presented as the Russian Enigma; Enigma's inability to encipher a letter as itself aided Polish and British codebreakers.
- Air Force Association (2011, October 6). Cold War Cipher Machine Goes on Display. Air Force Magazine (now Air & Space Forces Magazine). www.airandspaceforces.com/coldwarciphermachinegoesondisplay Used for: M-125 Fialka added to the AFISRA Heritage Center at Joint Base San Antonio, unveiled Sept. 22 [2011], on loan from the National Cryptologic Center Museum at Fort Meade; described as used in the Soviet Union from the late 1950s until its collapse in 1991.
- Borshchevskaya, A. (2019). The Soviets' Unbreakable Code. Foreign Policy; excerpt reposted by the National Cryptologic Foundation, Cryptologic Bytes, 4 August 2020. archive.cryptologicfoundation.org/community/bytes/cryptologic-bytes---codes-ciph Used for: Only the excerpt was read: Fialka created at the end of the Second World War and introduced in 1956, replacing the Albatross; widely adopted by 'Warsaw Pact and other communist nations' by the 1970s; in use 'until the early 1990s'. The Foreign Policy and Washington Institute copies could not be opened, so this is recorded as an excerpt read (closest schema value: abstract).
- Crypto Museum. Fialka M-125-3MR3 (Czechoslovakia) and M-125-3MR2 (Poland) variant pages. Crypto Museum. cryptomuseum.com/crypto/fialka/m125_3/cz.htm Used for: Polish variant with 3K wheels, Polish keyboard letters, and country print head; Czechoslovak variant electrically identical but with different keyboard, print head, and 6K wheels; standard PSU usable from the 24 V DC network of a truck; Cyrillic in fixed positions with Latin positions varying by country.
- Crypto Museum. News 2017. Crypto Museum. www.cryptomuseum.com/news/2017.htm Used for: Late-2017 discovery of an original Russian M-125-3 with original Russian cipher wheels, formerly a retirement gift to a senior KGB official.
- Crypto Museum. Fialka cipher wheels. Crypto Museum. cryptomuseum.com/crypto/fialka/wheels.htm Used for: Fixed rotors from 1956 whose wiring cannot be changed in the field; adjustable PROTON-2 rotors from 1978, mainly with the M-125-3, with removable, reversible wiring core and movable index ring; advance blocking pins; common 0K-series rotor set reserved for war with the West.
- Antal, E. & Zajac, P. (2015). Key Space and Period of Fialka M-125 Cipher Machine. Cryptologia, 39(2), 126-144. DOI: 10.1080/01611194.2014.915264. doi.org/10.1080/01611194.2014.915264 Used for: Existence of a peer-reviewed study; per the abstract, it summarizes the Fialka algorithm from public sources, introduces a mathematical model of the cipher, and analyzes the effect of blocking-pin settings on the cipher's period. Bibliographic details confirmed via Crossref.
- Crypto Museum. Fialka M-125-3M (Russia) variant page. Crypto Museum. www.cryptomuseum.com/crypto/fialka/m125_3/rus.htm Used for: Use of the Russian machine by the military, the police, the KGB, and probably other intelligence services.
What the evidence does not settle
Points where sources disagree, or that we could not confirm. We list them rather than smooth them over.
- Introduction date varies by source: Crypto Museum's website says the M-125 was developed in the mid-1950s and introduced around 1956, and Borshchevskaya (2019) also gives 1956; the 2009 Fialka Reference Manual says 'around 1965', apparently an error later corrected on the website; a 2011 Air Force Association report says the machine was used from the late 1950s.
- The date of the M-125-3 also varies: Crypto Museum's M-125-3 page says mid-1960s, its M-125 page says late 1960s, and its Russian M-125-3M page says from the early 1960s.
- End of service varies: 'early 1990s' (Borshchevskaya 2019) versus 'until that country's collapse in 1991' (Air Force Association 2011). Neither gives a documented retirement date per country.
- Cuba is named as a user by Crypto Museum, which marks it as 'likely but not certain'. No archival list of user states has been published.
- Whether the NSA or any NATO service read Fialka traffic is not confirmed by any published official document. The Fialka Reference Manual (2009, section 1.2.2) says the NSA could read Fialka messages relatively quickly by the 1970s, but its reference for this is 'Various undisclosed sources' (Appendix A says at least three anonymous sources). The same section says Israel, not the NSA, captured Fialka machines in the 1967 Six-Day War; online versions that credit the capture to the NSA appear to garble this account.
- Crypto Museum's overview page dates the PROTON-2 adjustable rotors to the mid-1970s, while its M-125, M-125-3, wiring and wheel pages give 1978. The German Spy Museum gives the end of service as the end of the 1980s.
- Peer-reviewed work on Fialka exists but is limited: Antal and Zajac (2015, Cryptologia 39(2), 126-144) on its key space and period, and Antal and Hromada (2013, Tatra Mountains Mathematical Publications 57, 101-118) on a stream cipher based on Fialka. Only the abstract of the 2015 paper was consulted for this article.
Corrections and updates
- : Corrected several points after a source check. The 5-bit digital output and the mains or 24-volt DC power supply were not new on the M-125-3; the original M-125 already had both, and the M-125-3's main additions were a mixed letters-and-numbers mode and a numbers-only mode. The description of the rotors as a removable wired insert inside a pinned ring applied only to the adjustable PROTON-2 rotors issued from 1978; the original rotors, from 1956, had fixed wiring. Crypto Museum does name Cuba as a likely user, which the earlier text said museum sources did not. Added the 2015 peer-reviewed Cryptologia study of Fialka's key space and period. Also: removed an unsupported reference to diplomatic traffic, noted that the Hungarian model suffix is unknown, noted the exception to the key-top rule, corrected the source for the wartime common rotor set and added that it was apparently never released, and replaced sources that could not be read in full (a Science Museum Group catalogue page and a U.S. Air Force news page) with a readable report or removed the claims that rested on them. A further check corrected the description of the stepping pins: a pin stops the wheel two places along from stepping, not a neighboring wheel. It also found that the claim about NSA codebreaking, previously described as untraceable, comes from the Fialka Reference Manual itself, which says Israel captured machines in 1967 and that the NSA could read Fialka messages by the 1970s, citing only undisclosed sources; the article now reports that account with its caveats.
Spotted an error? Email editor@wondersandmarvels.com with the passage and a source. See our corrections policy.
About this article: written for the new Wonders & Marvels by the Wonders & Marvels Research Desk, with AI-assisted research and drafting. It is an original work and does not reproduce any article previously published at this address.