Computing and Cryptography
The Second World War witnessed the birth of electronic computing, driven by the urgent demands of code-breaking and ballistic calculations. Between 1940 and 1945, the transformation from mechanical calculation to electronic computation occurred at a pace that would have seemed impossible in peacetime. The war created both the necessity and the resources for developments that established the foundations of the modern computing age, while cryptographic challenges demanded computational capabilities that pushed technology far beyond its prewar limits.
The convergence of cryptography and computing during this period proved particularly significant. The Allied effort to break Axis codes, most famously the German Enigma cipher, required processing volumes of data that exceeded human capacity. This challenge drove the development of electromechanical and eventually electronic machines that could perform operations at speeds previously unimaginable. The resulting breakthroughs, kept secret for decades after the war, fundamentally changed both computing and intelligence gathering, establishing patterns that continue to shape technology and national security to this day.
The Enigma Machine and the Challenge of German Cryptography
The German Enigma machine represented the most sophisticated encryption technology of its era and posed an unprecedented challenge to Allied code-breakers. Originally developed for commercial use in the 1920s, the Enigma was adopted and enhanced by the German military, which believed its codes were unbreakable. Understanding the Enigma's complexity illuminates why its defeat required revolutionary approaches to computation.
The Enigma's Operating Principles
The Enigma machine resembled an elaborate typewriter with electrical connections. When an operator pressed a key, electrical current passed through a series of rotors, each containing 26 contact points that scrambled the signal before illuminating a lamp indicating the encrypted letter. The brilliance of the design lay in its variability: after each keystroke, one or more rotors advanced, changing the substitution pattern for the next letter. A plaintext letter repeated within a message therefore enciphered to a different letter almost every time, defeating the frequency analysis that broke classical ciphers.
One feature of the design would prove decisive, though not in the way its designers intended. A reflector at the end of the rotor stack sent the current back through the rotors along a different path, which made encryption and decryption the same operation: an operator whose machine was set the same way simply typed the ciphertext to recover the plaintext. That convenience came at a price. Because the current could never retrace the path it had just taken, no letter could ever encipher to itself. Allied cryptanalysts exploited this restriction relentlessly, using it to rule out candidate alignments of guessed plaintext against ciphertext before any machine time was spent.
The German military version added further complexity. A plugboard at the front of the machine allowed operators to swap pairs of letters before and after the rotor encryption, vastly increasing the number of possible configurations. The Wehrmacht and Luftwaffe versions used three rotors selected from a set of five, while the Kriegsmarine drew its three moving rotors from a set of eight and, from February 1942, added a thin fourth rotor that did not advance during a message. Counting rotor selection, starting positions, ring settings, and the plugboard, the standard three-rotor Army and Air Force machine offered on the order of 1.6 x 1020 possible configurations, a figure often quoted as roughly 159 quintillion. This made brute-force cryptanalysis practically impossible with contemporary technology and reinforced German confidence in the system.
German operators changed settings daily according to codebooks, and network-specific procedures added further complications. Each message began with an indicator specifying the rotor positions for that particular transmission, itself encrypted. The complexity seemed to guarantee security, and German confidence in the system led to its widespread use across all military branches and many government agencies.
Polish Contributions to Enigma Analysis
The foundation for Allied success against Enigma was laid by Polish cryptanalysts in the 1930s. Poland, situated between Germany and the Soviet Union, had strong incentives to monitor German communications. The Polish Cipher Bureau recruited brilliant mathematicians including Marian Rejewski, Jerzy Rozycki, and Henryk Zygalski, who applied mathematical analysis rather than traditional linguistic methods to the Enigma problem.
Rejewski achieved the first breakthrough in 1932, reconstructing the internal wiring of Enigma rotors through mathematical analysis of message indicators. This feat, accomplished without ever seeing an actual military Enigma, demonstrated that the machine could be attacked through mathematical methods rather than captured codebooks. The Poles subsequently built replica machines and developed techniques for finding daily settings, enabling them to read German military traffic throughout the 1930s.
As German security measures tightened, the Poles built machinery to carry the search. Rejewski's bomba kryptologiczna, ready in November 1938, was in effect an aggregate of six Enigmas driven by an electric motor, stepping through rotor positions in search of a distinctive pattern in the doubly enciphered message keys. Six of these machines, one for each possible ordering of the three rotors, could recover a day's settings in roughly two hours. Zygalski's perforated sheets attacked the same indicator weakness by hand, using stacked sheets whose aligned holes marked candidate settings.
The advantage did not last. In December 1938, Germany issued two additional rotors, raising the number of possible rotor orders from six to sixty and multiplying the required machinery tenfold. Sixty bombas were beyond the Cipher Bureau's budget, and a change of indicator procedure in May 1940 would soon remove the weakness the bomba exploited altogether. In late July 1939, weeks before the German invasion, Polish cryptanalysts met British and French colleagues outside Warsaw and handed over everything: their reconstruction of the rotor wiring, replica Enigmas, the bomba and sheet techniques, and their perforated sheets. Britain restarted the work with far greater resources, but the Polish transfer saved it years.
Bletchley Park and Ultra Intelligence
Bletchley Park, a Victorian mansion in Buckinghamshire some fifty miles northwest of London, became the center of British code-breaking during the war. Staff numbers grew from about 150 in 1939 to close to ten thousand at the site and its outstations by January 1945, roughly three-quarters of them women. The intelligence produced there, codenamed Ultra, influenced virtually every major Allied campaign and remained one of the most closely guarded secrets in modern history.
Organization and Operations
The Government Code and Cypher School, as the Bletchley Park organization was officially known, combined academic brilliance with military discipline in unprecedented ways. Recruitment drew heavily from Oxford and Cambridge, with mathematicians, classicists, and chess champions working alongside career intelligence professionals. The organizational structure evolved continuously as the volume of intercepted traffic grew and new challenges emerged.
Different sections, housed in temporary wooden huts, focused on specific German networks. Hut 6 attacked German Army and Air Force Enigma, while Hut 8 tackled the more complex Naval Enigma. Hut 3 translated and analyzed Army and Air Force decrypts, while Hut 4 performed the same function for Naval material. This division of labor allowed specialists to develop deep expertise in their areas while maintaining the security compartmentalization essential for protecting the source.
The processing pipeline was remarkably efficient. Intercepted signals arrived continuously from listening stations around Britain. Cryptanalysts identified promising messages and determined the settings used for encryption. Decryption operators, many of them members of the Women's Royal Naval Service (WRNS), used replica Enigma machines to recover plaintext. Translators and intelligence analysts then extracted and distributed actionable information, often within hours of the original transmission.
The British Bombe
The British Bombe, designed by Alan Turing and Gordon Welchman in 1939-1940, was the primary electromechanical tool for attacking Enigma. Building on Polish concepts but incorporating significant improvements, the Bombe could test millions of possible Enigma settings in search of configurations that produced intelligible German text. The machine represented a milestone in the application of automated logic to cryptanalysis.
The Bombe worked by exploiting "cribs," probable words or phrases that analysts believed appeared in intercepted messages. Weather reports, for instance, typically began with predictable phrases, and some outposts obligingly signaled "nothing to report" every morning. Because Enigma could never encipher a letter to itself, a crib could first be slid along the ciphertext and every alignment showing a letter matched against itself discarded, often leaving only a handful of positions worth testing. The Bombe then wired the crib's letter relationships into a closed electrical circuit and stepped through rotor positions, stopping whenever a configuration did not produce a contradiction. Welchman's addition of a "diagonal board," which encoded the reciprocal nature of the plugboard, eliminated so many false stops that it transformed the machine's practical value.
Each machine held banks of rotating drums that simulated Enigma rotor stacks, thirty-six stacks in the standard British design, stepping through configurations far faster than any manual method. A single run swept all 17,576 rotor positions for one rotor order in roughly twenty minutes, so testing every one of the sixty possible orders consumed many machine-hours and was spread across the available Bombes; surviving candidate settings were then checked on a replica Enigma. Production grew steadily rather than suddenly: the first machine, named Victory, arrived in March 1940, and the improved Turing-Welchman design followed in August. By March 1941 Hut 11 housed up to six machines, and an outstation at Adstock held five more by the end of that year. Only later did the program reach its full scale, with more than two hundred Bombes in British service by the end of the war, most of them operated in shifts by members of the Women's Royal Naval Service. From 1943 the United States Navy added roughly 120 faster machines, designed under Joseph Desch and built by the National Cash Register Company in Dayton, Ohio, specifically to attack four-rotor naval Enigma.
Breaking Naval Enigma
German naval Enigma proved far more difficult to break than Army or Air Force versions. The Kriegsmarine used more complex procedures and additional security measures that prevented sustained penetration until 1941. Breaking Naval Enigma became crucial because German U-boats threatened to sever Britain's Atlantic supply lines, and their operational orders were transmitted by Enigma.
The breakthrough came through a combination of cryptanalytic insight and captured material. Alan Turing's Hut 8 developed Banburismus, a sequential statistical method that used overlaps between messages to narrow the choice of rotors before committing scarce Bombe time. Captures supplied the rest. On 9 May 1941, boarders from the destroyer HMS Bulldog took an Enigma machine and current key material from U-110, and seizures from the German weather ships München in May and Lauenburg in June yielded settings for the following months. By August 1941, Bletchley Park could read U-boat traffic with delays sometimes as short as hours, enabling convoy routing that steered around submarine patrol lines.
The Germans introduced the four-rotor Enigma for U-boat communications on 1 February 1942, creating a blackout that lasted ten months and coincided with devastating shipping losses. The way back in came from a documentary capture rather than a machine one: in October 1942, boarders from HMS Petard recovered the short weather cipher and short signal books from the sinking U-559 in the eastern Mediterranean, an operation in which Lieutenant Tony Fasson and Able Seaman Colin Grazier drowned. Because U-boats transmitted weather reports with the fourth rotor set to a neutral position, those documents reduced the problem to the three-rotor case the existing Bombes could handle. Reading resumed in December 1942, and Ultra intelligence contributed significantly to the decisive defeat of the U-boat campaign in mid-1943.
Impact of Ultra Intelligence
Ultra influenced Allied strategy and operations throughout the war. In North Africa, decrypted messages revealed Rommel's supply situation and operational plans. In the Atlantic, Ultra helped identify submarine positions for avoidance or attack. Before D-Day, Ultra confirmed that German deception indicators remained effective. Throughout the European campaign, decrypts revealed German order of battle, logistics status, and command decisions.
The value of Ultra extended beyond immediate tactical advantage. Access to German communications provided insight into enemy thinking, capabilities, and intentions at the strategic level. Allied commanders could make decisions with unprecedented confidence in their understanding of the opposing force. The knowledge that major German communications were being read continuously provided a psychological advantage that influenced planning and risk-taking.
Protecting Ultra's security required elaborate measures. The source was restricted to senior commanders, and cover stories explained how information was obtained. When Ultra revealed enemy plans, forces had to verify targets through conventional reconnaissance before attacking. The capture of materials that might reveal Allied code-breaking capability required immediate destruction. These security measures succeeded remarkably well; Germany never seriously suspected that Enigma had been compromised.
Colossus: The First Programmable Electronic Computer
While the Bombe attacked Enigma electromechanically, a far more sophisticated German cipher system demanded a truly electronic solution. The resulting Colossus machines, operational from early 1944, are generally recognized as the first programmable, electronic, digital computers. The qualifiers matter: the special-purpose Atanasoff-Berry Computer, built at Iowa State College by 1942, was electronic and digital but not programmable, and Konrad Zuse's contemporary Z3 in Germany was programmable but built from relays. Colossus was all three at once, and it worked on real traffic every day. Its existence nevertheless remained classified for decades, so it exerted almost no public influence on the computers that followed.
The Lorenz Challenge
German high command used a different encryption system for strategic communications between Hitler's headquarters and army group commanders. This system, known to the British as "Tunny" (the German name was Lorenz SZ40/42), was a teleprinter cipher far more complex than Enigma. The Lorenz machine used twelve cipher wheels rather than Enigma's three or four, and operated on the binary Baudot code used for teleprinter transmission rather than the alphabetic substitutions of Enigma.
British cryptanalysts first intercepted Lorenz traffic in 1940, but initial analysis proved extremely difficult. A breakthrough came in August 1941 when a German operator made a catastrophic error, transmitting the same message twice with the same machine settings but with slight differences in text. This "depth" allowed mathematician John Tiltman to recover the keystream and subsequently enabled William Tutte to reconstruct the Lorenz machine's logical structure without ever seeing an actual device, an achievement often considered the greatest intellectual feat of the war.
Breaking individual Lorenz messages, however, required enormous computational effort. The statistical techniques developed by Alan Turing and Max Newman could identify wheel settings, but performing the necessary calculations by hand took weeks for a single message. By the time the settings were found, the intelligence was often obsolete. Newman proposed building an electronic machine to perform these calculations at speeds that would make the intelligence timely.
Development of Colossus
The Colossus project brought together academic mathematicians, Post Office engineers, and the Telecommunications Research Establishment in an intensive development effort. Tommy Flowers, a Post Office engineer with experience in telephone switching, led the hardware design. Flowers was convinced that vacuum tubes could be made reliable if treated properly, a view considered optimistic by many contemporaries who knew tubes primarily as fragile and failure-prone radio components.
Flowers began work in February 1943 and had the machine running at the Post Office Research Station at Dollis Hill by December, about eleven months later. It was moved to Bletchley Park and entered service there in February 1944. The prototype contained roughly 1,500 thermionic valves and read a looped paper tape of intercepted ciphertext at 5,000 characters per second, a rate limited by the tape rather than the electronics. Colossus generated the patterns of the Lorenz wheels internally, compared them against the tape, and counted the statistical coincidences that betrayed a correct setting. Work that had consumed weeks by hand was finished in hours.
Colossus Mark I proved successful immediately, and an improved Mark II first ran on 1 June 1944, days before the Normandy landings. Mark II used about 2,400 valves and shift registers that let it examine five tape positions at once, quintupling throughput without spinning the tape any faster. Ten Colossi were in service by the end of the war, with an eleventh being commissioned. Eight were dismantled afterward; two were retained by the Government Communications Headquarters and remained in use into the early 1960s, one reason the machines stayed secret so long.
Technical Significance
Colossus incorporated several features that would characterize later computers. It operated on binary data, performed Boolean logic and counting at electronic speed, and could be reprogrammed for different statistical tests by setting switches and repositioning plugs, though it was not a stored-program machine and could not modify its own instructions. Its 5 kHz clock was derived from the sprocket holes in the tape itself, which kept the electronics in step with the data and removed any need for a separate synchronizing mechanism. Speed came from parallelism rather than clock rate: the Mark II examined five tape positions simultaneously and its counters ran concurrently, an approach that anticipated later architectural practice.
Colossus also settled a practical question that had held back electronic computing. Contemporaries knew valves mainly as the fragile components that failed in radio sets, and few believed that fifteen hundred of them could run together. Flowers argued from telephone exchange experience that most failures occur when equipment is switched on and off, and that valves operated continuously, well within their ratings, and left powered would last. He was right. The machines ran around the clock, and faults were rare enough that the design's modular construction made the occasional replacement routine.
The lessons, however, went nowhere. Eight of the ten machines were broken up after the war, the drawings were destroyed, and the participants were bound by the Official Secrets Act for decades. Flowers received a modest official award and never publicly received credit in his most productive years. Only from the mid-1970s, as material was declassified, could historians establish that a working programmable electronic computer had been running at Bletchley Park in February 1944, nearly two years before the ENIAC was publicly dedicated. A functioning Colossus Mark II rebuild, led by Tony Sale from 1993, now operates at The National Museum of Computing on the Bletchley Park site.
American Cryptanalysis and the Pacific War
The Allied code-breaking effort was not confined to Europe. American cryptanalysts attacked Japanese diplomatic and naval systems with their own combination of mathematics and machinery, and their tools were different from Britain's: where Bletchley Park built purpose-designed cryptanalytic engines, the United States leaned heavily on commercial punched-card equipment, an industrial base that would shape the postwar computer business.
Purple and Magic
Japan's foreign ministry encrypted its most sensitive traffic with a machine the Americans called Purple. Unlike Enigma, it used no rotors at all. Its designers built the cipher from telephone stepping switches, the same components that routed calls in an automatic exchange, splitting the alphabet into a group of six letters and a group of twenty that were enciphered by separate mechanisms.
The Army's Signal Intelligence Service, led by William Friedman with Frank Rowlett heading the attack, worked from intercepted traffic alone. After about eighteen months of analysis the team deduced the machine's logical structure and, in September 1940, built an analog of it from relays and stepping switches without anyone having seen the original. The decrypts, distributed under the codename Magic, gave Washington a continuous view of Japanese diplomatic reporting, including detailed accounts of German defenses supplied by Japan's ambassador in Berlin. Purple carried diplomatic rather than operational traffic, however, which is why it gave no warning of the attack on Pearl Harbor.
JN-25 and Punched-Card Cryptanalysis
The Imperial Japanese Navy's operational code, known to the Allies as JN-25, was not a machine cipher but a codebook of tens of thousands of five-digit groups, superenciphered by adding numbers drawn from a separate additive table. Recovering the additives and the code meanings demanded comparison across enormous volumes of traffic, precisely the kind of repetitive tabulation that punched-card machines did well. Stations at Pearl Harbor, Washington, and Melbourne ran banks of IBM tabulators, sorters, and collators continuously, searching for message groups whose numerical differences suggested a shared additive.
Partial reads produced two of the war's most consequential intelligence successes. In May 1942, Commander Joseph Rochefort's unit at Pearl Harbor suspected that the Japanese designator "AF" meant Midway, and confirmed it by having Midway transmit a plain-language report of a water shortage that Japanese operators duly repeated in an encoded message. The resulting knowledge of the enemy's plan and order of battle shaped the American victory at Midway in June 1942. In April 1943, decrypted itinerary details allowed American fighters to intercept and shoot down the aircraft carrying Admiral Isoroku Yamamoto over Bougainville.
The Pacific effort left a technological legacy as well as an operational one. Wartime work drove punched-card equipment to its practical limits and convinced both the Navy and its suppliers that electronic machinery would be needed next. Engineering Research Associates, formed in 1946 from the Navy's cryptanalytic machine group, and the National Cash Register laboratory that had built the American Bombes both became early contributors to the commercial computer industry.
Harvard Mark I: Electromechanical Computing
While British cryptanalysts developed electronic computers in secret, American computing took a different path. The Harvard Mark I, completed in 1944, represented the pinnacle of electromechanical computing technology. Though soon superseded by electronic machines, Mark I demonstrated that large-scale automatic computation was practical and trained a generation of programmers who would lead postwar computer development.
Origins and Development
The Mark I, formally the Automatic Sequence Controlled Calculator, originated in the frustration of Howard Aiken, a Harvard physics graduate student whose thesis work on space charge required solving differential equations by hand. His 1937 proposal described a machine that would carry out long sequences of arithmetic automatically from coded instructions. Harvard had little appetite for funding it; IBM, seeking to demonstrate its engineering reach beyond accounting machinery, agreed to build the machine at its own expense.
Construction proceeded at IBM's Endicott, New York, facility under Clair Lake, with Francis Hamilton and Benjamin Durfee doing much of the detailed design. The machine used IBM's proven electromechanical technology: relays, rotary switches, and counter wheels derived from tabulating equipment. Work ran from 1939 to 1943, and the completed calculator was shipped to Harvard and reassembled there in February 1944.
The result was enormous: about fifty-one feet long, eight feet high, and two feet deep, with roughly 765,000 components and some 530 miles of wire. A fifty-foot drive shaft turned by a five-horsepower motor synchronized the calculating units mechanically. Storage consisted of 72 counter registers, each holding a signed 23-digit decimal number, with 60 further constants set on banks of rotary switches. It performed about three additions per second, took roughly six seconds for a multiplication and about fifteen for a division, and needed more than a minute for a logarithm or a sine. That was slow by the standards of the electronic machines already taking shape, but it ran unattended for hours at a time, which no room full of human computers could do.
Wartime Applications
The Navy took the machine over on arrival, commissioning Aiken as its officer in charge and running it around the clock. Mark I computed ballistic and range tables, analyzed the design of naval guns and torpedo protection, and produced mathematical tables for the Bureau of Ships. Problems that would have occupied teams of human computers for months were completed in days.
Its most consequential job came from outside Harvard. John von Neumann, consulting for the Manhattan Project, needed numerical work on the implosion geometry of the plutonium weapon and recognized that the Mark I could do it faster than any other machine then available. The calculations ran for weeks in 1944, under security arrangements that left the operators unaware of what the numbers described.
The programming team included Grace Hopper, who joined in July 1944 as a Navy Reserve lieutenant, junior grade, alongside Robert Campbell and Richard Bloch. Hopper wrote the machine's operating manual, a volume of several hundred pages that stands as one of the first extended treatments of programming as a subject in its own right, and the group's conventions for coding, checking, and documenting problems propagated outward with the people who learned them. Hopper went on to be one of the most influential figures in computing, driving the development of the compiler and of the business language COBOL.
Limitations and Legacy
Mark I's electromechanical technology imposed fundamental limitations. Relays and counter wheels operated thousands of times slower than vacuum tubes, and instructions arrived from a punched paper tape that the machine read strictly in order. It had no conditional branch: the sequence of operations could not depend on a computed result. Operators produced repetition by gluing the ends of an instruction tape into a physical loop, and a calculation that needed to take one path or another had to be stopped and restarted by hand. The stored-program architecture that removed these constraints was already being formulated elsewhere while Mark I was being installed.
Nevertheless, Mark I proved that automatic computation at scale was achievable and useful. It made loops, subroutines, and systematic documentation part of ordinary practice, and it operated in service at Harvard until 1959, an unusually long working life. Aiken's later machines followed the same lineage while moving away from its technology: Mark II, delivered to the Naval Proving Ground at Dahlgren in 1948, was faster relay machinery, while Mark III and Mark IV incorporated vacuum tubes and, in Mark IV, magnetic-core memory. The larger legacy was human. Harvard's computation laboratory became one of the first places where computing was taught, and the people who learned there carried the practice to other institutions.
Mark I's influence extended beyond its direct contributions. The publicity surrounding the machine attracted attention to computing possibilities and demonstrated that large computing projects could succeed. Many of the engineers and programmers who worked with Mark I went on to lead postwar computing efforts, carrying lessons learned at Harvard to new institutions and new machines.
ENIAC: The American Electronic Computing Project
The Electronic Numerical Integrator and Computer (ENIAC), though completed just after the war ended, was conceived and largely built during the conflict. ENIAC became the most famous early computer and demonstrated electronic computing capabilities that captured public imagination. Its development established the Moore School of Electrical Engineering as a center of computing innovation and trained engineers who would lead the field for decades.
Project Origins
ENIAC originated in the wartime need for ballistic tables. Each new gun, projectile, or fusing system required extensive tables showing trajectories under various conditions. The Ballistic Research Laboratory at Aberdeen Proving Ground employed hundreds of human computers, supplemented by differential analyzers, but demand exceeded capacity. A single firing table might require a month of calculation, and the Army needed hundreds of tables.
John Mauchly, a physicist teaching at the Moore School, had been contemplating electronic calculation since the late 1930s. His 1942 memo proposing an electronic computer found support from Army officer Herman Goldstine, who recognized that such a machine could solve the ballistic table bottleneck. Mauchly partnered with J. Presper Eckert, a brilliant young engineer, and formal development began in April 1943 with Army funding.
The project faced enormous technical challenges. No one had built an electronic system of this complexity. Valve reliability was the objection every reviewer raised: with more than seventeen thousand tubes, ordinary failure rates implied that something would break before any long calculation could finish. Eckert attacked the problem the same way Flowers had in Britain, without knowing of his work. He specified conservative operating points, running heaters and plate voltages well below rated values, screened tubes before installation, and left the machine powered continuously so that components never suffered the thermal shock of switching on. Modular construction in pluggable units allowed a failed section to be located and swapped quickly. The precautions worked well enough that by the mid-1950s ENIAC was recording failure-free runs measured in days.
Technical Characteristics
ENIAC was designed for maximum speed rather than programming convenience. The machine contained 17,468 vacuum tubes, 7,200 crystal diodes, 1,500 relays, 70,000 resistors, 10,000 capacitors, and some 6,000 manual switches, joined by roughly five million hand-soldered connections. It weighed over thirty tons, occupied about 1,800 square feet, and drew 150 kilowatts. Despite its bulk, ENIAC as first built was a very fast calculator rather than a computer in the modern sense, because it lacked the stored-program architecture that would define later machines.
Programming ENIAC meant physically rewiring it, setting switches and running patch cables between units, and a complex problem could take days to set up before a single number was computed. Once configured, the machine ran at electronic speed, finishing in seconds what electromechanical equipment needed hours to do. It performed 5,000 additions per second, more than a thousand times the rate of the Harvard Mark I.
ENIAC's architecture consisted of specialized units for different functions: an accumulator for addition and storage, a multiplier, a divider, and various control units. Twenty accumulators could operate in parallel, anticipating later parallel computing concepts. The machine was decimal rather than binary, storing numbers as rings of vacuum tubes representing digits. This design choice simplified human interaction but was less efficient than the binary systems that would become standard.
Completion and Early Use
ENIAC was substantially complete in the autumn of 1945, months after Japan's surrender, and the formal dedication on 15 February 1946 generated enormous publicity. News coverage dwelt on the machine's speed and scale and fixed the popular image of the computer as a giant electronic brain, a phrase its builders disliked. Almost invisible in that coverage were the six mathematicians who had worked out how to make the machine solve problems at all: Kathleen McNulty, Frances Bilas, Betty Jean Jennings, Frances Elizabeth Snyder, Ruth Lichterman, and Marlyn Wescoff, recruited from the ranks of Aberdeen's human computers. Working from wiring diagrams, they devised the setup procedures for the machine's first problems and pioneered techniques for finding faults in them. Their contribution went largely unacknowledged for decades.
The first major problem run on ENIAC was not a firing table but a calculation for Los Alamos on the feasibility of a thermonuclear weapon, carried out in December 1945 and January 1946 on about a million punched cards. The work demonstrated the machine's value for problems well beyond its original purpose and foreshadowed the close relationship between computing and weapons research that would characterize the Cold War.
ENIAC was moved to the Ballistic Research Laboratory at Aberdeen in 1947 and remained in service until it was shut down on 2 October 1955. In 1948 it was converted to operate in a rudimentary stored-program mode, its instructions held in read-only function tables rather than in patch cables. The change cost roughly a sixfold reduction in speed but replaced days of rewiring with an afternoon of switch setting, which made the machine far more productive in practice. The experience gained with ENIAC fed directly into the EDVAC design and, through Eckert and Mauchly's own company, into UNIVAC and the beginning of the commercial computer industry.
Analog Fire Control Computers
While digital computers captured historical attention, analog computing reached its highest development during World War II in fire control systems. These specialized computers solved the complex ballistic equations needed to aim naval guns, direct antiaircraft fire, and guide early smart weapons. Though eventually superseded by digital systems, wartime analog computers achieved remarkable sophistication and reliability.
The Fire Control Problem
Hitting a moving target from a moving platform presented a challenging computational problem. A ship's guns must be aimed not at where an enemy aircraft or ship is, but at where it will be when the shells arrive. The computer must account for target motion, ship motion, projectile flight time, wind, air density, and barrel wear, all while continuously updating as conditions change. Before computers, even skilled gunners could rarely hit distant targets.
The United States Navy had developed electromechanical fire control computers in the 1930s, but wartime requirements demanded improved accuracy, faster response, and operation against new threats. Antiaircraft fire control proved particularly challenging: aircraft could change direction quickly, and the short engagement windows required rapid, accurate solutions. These demands drove intensive development of analog computing technology.
Naval Gun Directors
The Mark 37 Gun Fire Control System exemplified wartime analog computing achievement. Used on virtually every major U.S. Navy combatant, this system continuously calculated firing solutions for dual-purpose guns used against both surface and air targets. The system included a computer, a director for tracking targets, radar for ranging, and stable vertical reference equipment to compensate for ship motion.
The heart of the system was the Mark 1 Fire Control Computer, a mechanical analog computer using rotating cams, differential gears, and servomechanisms to solve ballistic equations. Target bearing, elevation, and range from the director were continuously fed to the computer, which calculated gun orders accounting for all ballistic factors. These orders were transmitted electrically to the gun mounts, which automatically trained and elevated the guns.
Radar integration, achieved during the war, was particularly significant. Early systems required optical tracking, which failed in poor visibility. Radar directors could track targets at night or in fog, and provided more accurate range information than optical methods. By war's end, radar-directed gunfire had become the norm for naval combat.
Antiaircraft Computing
The threat of air attack drove development of specialized antiaircraft fire control. The M9 Gun Director, developed by Bell Telephone Laboratories, became the standard United States Army antiaircraft computer. Unlike the Navy's mechanical computers, the M9 solved the fire control problem electrically, using potentiometers, amplifiers, and feedback networks to represent the ballistic relationships. Fed by the SCR-584 microwave tracking radar, it computed a continuous solution for batteries of 90mm guns and drove them onto the predicted target position automatically.
The combination of that radar, that computer, and the proximity fuze produced the war's clearest demonstration of what automated fire control could do. When German V-1 flying bombs were redirected against southern England in the summer of 1944, gun batteries initially destroyed only a small fraction of them. After the defenses were reorganized along the coast and re-equipped with the SCR-584, the M9, and proximity-fuzed shells, the proportion rose sharply through August; on 28 August 1944, the last major day of launches before the sites were overrun, antiaircraft guns brought down 64 of the 104 V-1s dispatched, with fighters accounting for most of the rest. The V-1 flew a straight, unvarying course, which made it the ideal target for a predictor, but the result nonetheless changed expectations of what antiaircraft fire could achieve.
Bell Labs also supplied much of the underlying theory. Its long experience with feedback in telephone repeaters and negative-feedback amplifiers applied directly to the servomechanisms that turned computed solutions into gun motion. Claude Shannon, who would publish the mathematical theory of communication in 1948, worked during the war on the statistical smoothing and prediction of noisy tracking data with Hendrik Bode and Ralph Blackman, treating the target's future position as a problem of estimation in the presence of noise. That framing outlived the guns it was devised for and became part of the foundation of modern control and estimation theory.
Development continued to the last day of the war and beyond. The Mark 56 Gun Fire Control System, designed at the MIT Radiation Laboratory under Ivan Getting and first delivered in August 1945, coupled a radar tracker to a ballistic computer for intermediate-range guns and was built specifically to hold high-speed aircraft that older directors could not follow. It served in the fleet for decades. Collectively these systems established the principles of real-time computing and closed-loop control that would shape computer and control system development long afterward.
Guided Weapons Computing
The war saw the first operational guided weapons, and each carried some form of computation aboard. The German V-1 used a gyroscopic autopilot to hold a preset course, with a small vane anemometer counting off the distance traveled so that the machine pitched into its dive at the intended range; it computed nothing beyond distance and attitude. The V-2 was far more capable, carrying a gyroscopically stabilized platform and analog circuitry that integrated acceleration to determine when the desired velocity had been reached and the engine should cut off, the direct ancestor of inertial navigation. American guided bombs took the opposite approach: the radio-controlled Azon steered only in azimuth, leaving the operator to fly it visually onto the target while the bomb itself held no solution at all.
These systems marked out the range of possibilities and the limits of analog guidance. The tight coupling of sensing, computing, and control that characterizes modern weapons began here. It also became clear where the approach ran out: analog elements drifted, could not easily be reprogrammed, and grew unwieldy as the equations grew complex. Postwar guidance would move steadily toward digital computation for the precision and flexibility that missiles and aircraft came to demand.
Ballistic Calculation and Automation
The need for accurate artillery fire drove extensive development in ballistic calculation methods. Traditional firing tables, laboriously computed by hand, could not keep pace with the proliferation of new weapons and ammunition types. The war accelerated both the methods for computing ballistic data and the devices for applying it in the field.
Computing Firing Tables
The Ballistic Research Laboratory at Aberdeen Proving Ground was the primary American center for firing table computation, supported by the Moore School under contract. The work was done by human computers, most of them women with mathematics degrees, using desk calculators. A single trajectory required numerically integrating the equations of motion through several dozen steps and occupied one person with a desk calculator for a day or more; a usable firing table required on the order of a few thousand trajectories. The Moore School's differential analyzer, a mechanical analog machine that integrated with friction wheels, could produce a trajectory in a fraction of that time but needed constant attention and setup for each new configuration.
The war overwhelmed this capacity. New guns, new projectiles, proximity fuzes, and unfamiliar climates generated demand for hundreds of tables, and the backlog grew faster than the laboratory could recruit and train computers. This bottleneck, not any abstract interest in computing machinery, is what persuaded the Army to fund ENIAC. The contrast when the machine finally ran made the point emphatically: ENIAC computed a trajectory in about thirty seconds, less time than the shell would have taken to fly it, and reduced a table that had occupied a room of people for a month to a matter of days.
The war also improved ballistic modeling itself. High-speed photography allowed detailed study of projectile behavior. Wind tunnels characterized aerodynamic properties at transonic and supersonic velocities. Improved atmospheric models accounted for conditions encountered at high altitudes. These scientific advances required corresponding increases in computational effort, adding to the demand for automated calculation.
Field Artillery Computing
Converting firing table data into actual gun settings in the field was traditionally a manual process. Forward observers reported target locations; fire direction centers plotted positions on maps and calculated firing data using tables and manual arithmetic; and fire commands were relayed to gun batteries. This process was slow and error-prone, limiting artillery effectiveness.
The war brought steady, unglamorous automation to this process. Graphical firing tables, essentially specialized slide rules printed with the ballistic data for a particular gun and charge, replaced table lookup and interpolation with the setting of a cursor. Plotting boards, range-deflection fans, and mechanical calculators absorbed much of the remaining arithmetic. The American practice of massing the fire of many batteries on a single target, which depended on computing accurate data quickly for guns that could not see what they were shooting at, rested directly on this apparatus. Full automation came later: the Field Artillery Digital Automatic Computer, accepted at the end of the 1950s and fielded in the early 1960s, was among the first digital computers built to be used in the field, and its lineage runs straight back to the fire direction centers of the Second World War.
Operations Research and Scientific Problem-Solving
The war established operations research as a discipline, applying scientific and mathematical methods to military operational problems. While not computing in the traditional sense, operations research relied heavily on calculation and developed analytical methods that would later be implemented on computers. The war demonstrated that quantitative analysis could improve military effectiveness in measurable ways.
Origins of Operations Research
Operations research emerged first in Britain, where scientists were recruited to analyze military problems that resisted intuitive solution. Radar-equipped night fighters were failing to intercept German bombers; analysis revealed the interception geometry was inherently unfavorable with existing tactics, leading to new approach patterns. Bomber losses during deep penetration raids followed statistical patterns that could inform decisions about acceptable risk. Convoy sizing affected submarine encounter probability in ways that could be calculated and optimized.
The United States established similar groups across all services. These teams tackled problems ranging from depth charge settings to antisubmarine patrol patterns to the relationship between bombing accuracy and mission planning. One frequently cited British result illustrates the method: analysis of attacks on surfaced U-boats showed that depth charges were being set to detonate far below the boat, which was still near the surface at the moment of attack, and reducing the setting to about twenty-five feet multiplied the number of kills without any change to the weapon itself. The common thread was the substitution of measurement for intuition on questions that had previously been settled by tradition.
Analytical Methods and Computing
Operations research problems often required extensive computation. Determining optimal patrol patterns might require analyzing thousands of possible routes. Evaluating antisubmarine tactics required statistical analysis of hundreds of encounters. Supply chain optimization involved solving large systems of equations. These computational demands drove interest in mechanical and electronic aids.
Most of this work was done with desk calculators, punched-card tabulators, and careful statistical design rather than with computers, which were scarce and committed to other tasks. The constraint shaped the discipline: wartime operations research favored analytical results and simple models that a small team could evaluate by hand. The relationship reversed in the postwar period. Linear programming, queueing analysis, and Monte Carlo simulation, all of which took shape in the decade after 1945, assumed computational resources that only electronic computers could supply, and operations research became one of the first substantial civilian markets for them.
Electronic Navigation Systems
The war drove development of electronic navigation systems that would evolve into the global navigation infrastructure we use today. The need to guide aircraft to targets in darkness and bad weather, to coordinate naval forces across vast ocean distances, and to enable amphibious operations at precise locations all demanded navigation capabilities beyond traditional methods.
LORAN Development
LORAN (Long Range Navigation) became the first electronic navigation system to achieve widespread operational use. Developed at the MIT Radiation Laboratory, LORAN used precisely synchronized radio pulses from chains of ground stations to enable position determination at sea. A shipboard receiver measured the time difference between pulses from paired stations; this difference corresponded to a curve of possible positions. Measurements from additional station pairs provided intersecting curves that fixed position.
The system stood or fell on timing. Stations hundreds of miles apart had to fire their pulses in a fixed relationship to one another, because an error of a single microsecond in synchronization displaced the resulting position line by roughly a thousand feet. Achieving that discipline demanded crystal oscillators of unusual stability, continuous monitoring, and operating procedures built around the measurement of time rather than of distance. The habit of thinking about navigation as a timing problem, established here, runs directly through to satellite systems, in which position is still recovered from the arrival times of synchronized signals.
By war's end, LORAN chains covered the North Atlantic and much of the Pacific, and receivers were installed in ships and long-range aircraft in large numbers. A navigator could obtain a fix good to a few miles at ranges of several hundred miles from the transmitting stations, day or night and regardless of cloud, which no celestial method could match. The original system, later designated Loran-A, remained in service until 1980; its lower-frequency successor Loran-C continued much longer, with United States transmissions ending in 2010. Interest in an enhanced version, eLoran, has since revived on the argument that a high-power terrestrial system is a useful backup when satellite signals are jammed or spoofed.
British Navigation Aids
The Royal Air Force developed navigation aids specifically for bomber operations. Gee, first used operationally in March 1942, applied time-difference measurement much like LORAN but over a shorter range of roughly 350 miles, and was jammed within months. Oboe, introduced late in 1942, worked differently: two ground stations tracked a single aircraft, one holding it on an arc of constant range from the target and the other signaling the release point, which gave accuracy on the order of a hundred yards through complete cloud but could handle only a few aircraft at a time. H2S, first flown operationally in early 1943, moved the equipment into the aircraft, using a cavity magnetron radar to paint a crude map of the ground below and freeing the bomber force from dependence on ground stations at the cost of transmitting a signal the defenders could home on.
These systems represented different approaches to the navigation problem. Gee provided positional information that pilots interpreted and acted upon. Oboe provided direct guidance commands, essentially flying the aircraft remotely to the target. H2S gave aircrew an electronic map of the ground below. Each approach had advantages and limitations that informed postwar navigation system design.
Computing Elements in Navigation
The computation in wartime navigation was mostly left to the human operator. A LORAN receiver measured and displayed a time difference; the navigator then read a position line off a printed chart overprinted with the hyperbolic lattice for that station pair, and crossed it with a second. Airborne dead reckoning was worked with a computing slide rule and a plotting board. The electronics supplied a measurement of unprecedented quality, but converting it into a position remained manual, and the resulting workload was itself an argument for automation.
Two lines of development eventually removed that workload. Inertial navigation, which grew out of wartime guidance work and matured in the following two decades, required the continuous double integration of acceleration, a task no navigator could perform and one that pushed steadily toward digital computation. Radio position fixing followed the same path once receivers could compute rather than merely display, so that the operator was given a position rather than a set of numbers to look up. Satellite navigation combines both inheritances: it measures arrival times to a fraction of a microsecond, as LORAN did, and solves for position aboard the receiver, as no wartime system could.
Wartime Computing Legacy
The computing developments of World War II established foundations that would shape the subsequent half-century of computing evolution. The war proved that electronic computation was possible and useful, trained the people who would lead postwar development, and created institutional frameworks that would support continued advancement. The patterns established during the war influenced computing development long after peace returned.
Institutional Developments
The war created institutions and relationships that would shape computing for decades. The close cooperation between universities, government agencies, and industrial contractors established during the war continued through Cold War defense programs. Government funding for computing research, established to support war needs, expanded rather than contracted after 1945. The intelligence community's investment in computing, rooted in wartime code-breaking, would drive advanced development for decades.
The Moore School at the University of Pennsylvania became a center for postwar computer development. Courses taught there trained many of the engineers who built first-generation computers across the United States. The IBM Corporation, which had built Mark I, invested heavily in electronic computing and would come to dominate the computer industry. The patterns of competition and collaboration established during the war would characterize the computing industry for its first several decades.
Technical Foundations
Wartime projects established technical principles that would guide postwar computing. The stored-program concept, formulated during the ENIAC project and refined through the EDVAC design, became the fundamental organizing principle for modern computers. Vacuum tube computing techniques developed for Colossus and ENIAC demonstrated that large-scale electronic systems could be made reliable. Programming concepts developed at Harvard and Philadelphia would evolve into the discipline of software engineering.
The war also established the importance of human-computer interaction. Programming ENIAC was tedious and error-prone; improving this process became an immediate postwar priority. The experience of using computers for real problems revealed requirements for input/output, storage, and reliability that shaped subsequent designs. The gap between what computers could theoretically do and what was practical for users to accomplish became apparent, driving development of programming languages and operating systems.
The Secrecy Legacy
The extreme secrecy surrounding wartime computing, particularly in Britain, had lasting effects. Colossus remained classified until the 1970s, preventing British achievements from influencing early postwar development. The intelligence community's computing work, continuous from wartime through the Cold War, remained hidden from public and academic view. This secrecy both protected vital capabilities and delayed historical recognition of wartime achievements.
When the secrecy was eventually lifted, the history of computing required revision. A programmable electronic computer had been running on operational work at Bletchley Park in February 1944, nearly two years before ENIAC's public dedication, and the role of cryptanalysis in driving that development turned out to be far greater than the published record had suggested. The revision continues as archives are opened: the general shape of wartime computing has been clear since the 1970s, but details of the machines, the methods, and the people who ran them have kept emerging for fifty years afterward.
Summary and Significance
The convergence of computing and cryptography during the Second World War produced the machinery and the methods on which modern digital technology rests. Code-breaking supplied both the motive and the money for the first programmable electronic computer; ballistics supplied them for the first general-purpose one. Cryptanalysis against Japanese systems pushed punched-card equipment to its limits and convinced its users that something faster was needed. Fire control demonstrated that a machine could compute continuously against a changing world in real time. Each of these problems was solved separately and in secret, yet together they compressed into five years a transition that might otherwise have taken a generation.
Three themes run through the whole period. The first is that reliability, not speed, was the real barrier to electronic computing, and that it fell to engineering discipline rather than to any new component: Flowers and Eckert independently discovered that valves run gently and left switched on would last. The second is that the people mattered as much as the machines. The mathematicians of the Polish Cipher Bureau, the Wrens who ran the Bombes, the women who programmed the Harvard Mark I and ENIAC, and the analysts of the operations research groups created a practice of computing that outlasted every machine they touched. The third is that secrecy has a cost. Britain built a working electronic computer first and gained almost nothing from the priority, because the knowledge could not circulate.
The wartime problems themselves have not gone away, and neither have their solutions. Position is still recovered from the arrival times of synchronized signals, weapons are still aimed by continuous computation of a predicted future position, and cryptanalysis is still a contest decided largely by available computing power. Understanding how those patterns were established explains a great deal about the shape of the technology that followed.