<?xml version="1.0" encoding="UTF-8"?><rss version="2.0" xmlns:content="http://purl.org/rss/1.0/modules/content/">
  <channel>
    <title>venona &amp;mdash; jolek78&#39;s blog</title>
    <link>https://jolek78.writeas.com/tag:venona</link>
    <description>thoughts from a friendly human being</description>
    <pubDate>Sat, 08 Aug 2026 11:13:06 +0000</pubDate>
    <image>
      <url>https://i.snap.as/DEj7yFm4.png</url>
      <title>venona &amp;mdash; jolek78&#39;s blog</title>
      <link>https://jolek78.writeas.com/tag:venona</link>
    </image>
    <item>
      <title>One Time Pad: the perfect cipher</title>
      <link>https://jolek78.writeas.com/one-time-pad-the-perfect-cipher?pk_campaign=rss-feed</link>
      <description>&lt;![CDATA[There is a single encryption algorithm that mathematics declares unbreakable. Not &#34;hard&#34;: &#34;impossible&#34;, with a proof to back it up. And yet every time someone has tried to actually use it, it has fallen - not through a flaw in the mathematics, but through a banal human error. This is the story of a fascinating perfection that turns imperfect.&#xA;&#xA;!--more--&#xA;&#xA;Almost all the cryptography we use every day - the kind that protects your bank account, your messages, your connection to this very site - rests on a bet: that certain mathematical problems are too slow or too hard to solve. Factoring six-hundred-digit numbers, computing discrete logarithms over elliptic curves: nobody today knows how to do it fast enough, and so we sleep soundly. But it&#39;s a peace with an expiry date, because &#34;hard&#34; is never &#34;impossible&#34;. The hardware changes, a cleverer algorithm comes along, quantum computing looms on the horizon, and the bet has to be renegotiated from scratch.&#xA;&#xA;There is one, single exception. A cipher that isn&#39;t hard to break: it&#39;s impossible, and not in the advertising sense of the word. There&#39;s a proof, a theorem in the full sense. It&#39;s called the one-time pad, the single-use notebook. In a world full of threats to privacy and of governments playing &#34;big brother&#34; without knowing the basics of modern cryptography, it&#39;s worth telling the story of this cipher and of how, for a century, the real world has found a way to sidestep it every single time without ever scratching it.&#xA;&#xA;---&#xA;&#xA;An invention from 1917&#xA;&#xA;It all begins in a room at AT&amp;T.&#xA;&#xA;In 1917 Gilbert Vernam, an engineer at Bell Labs, invents a cipher to protect teleprinter communications. Vernam&#39;s idea is elegant and simple: electrically combine each character of the message with a character read from a punched paper tape - what we can call &#34;the key&#34;. The combination is a reversible operation: whoever holds the same tape undoes it by running it backwards and recovers the message; whoever doesn&#39;t have it sees only noise. If the tape says one thing and the message says another, what comes out on the wire is a sum of the two, unreadable to anyone without that tape.&#xA;&#xA;The structure is already very solid, but the conceptual leap is made by a soldier. Captain Joseph Mauborgne, of the U.S. Army Signal Corps, realises that if the sequence on the tape were completely random, cryptanalysis would become enormously harder. It&#39;s the intuition that turns Vernam&#39;s cipher into the true one-time pad: not just &#34;any&#34; key, repeated or derived from a phrase, but a truly random key, as long as the message and used only once. Hence the name: a notebook of sheets, each sheet a key, each sheet torn off and destroyed after use.&#xA;&#xA;The intuition is right, but it hangs unproven. For a quarter of a century no one manages to explain why it works so well: the proof is missing that the system is not merely very robust, but mathematically unassailable.&#xA;&#xA;---&#xA;&#xA;Two lines running in the same year&#xA;&#xA;Here the story forks, and the two lines that set off run in parallel for the rest of the tale. On one side there&#39;s the theory, which between 1941 and 1949 arrives at locking down the cipher with a proof. On the other there&#39;s the practice, which in those very same years begins to sabotage it. It&#39;s worth keeping both in view, because the whole point of the affair lies precisely in the distance between the two.&#xA;&#xA;The line of the proof.&#xA;The proof comes from the man who, in those same years, is inventing the entire theory of information from scratch: Claude Shannon. The special status of the Vernam-Mauborgne pad is established by him, about twenty-five years after its invention. In his Communication Theory of Secrecy Systems - circulated as a classified report in 1945 and published openly in 1949 - Shannon proves that the one-time pad is unassailable because every possible plaintext is equally probable given any ciphertext. This property is called perfect secrecy.&#xA;&#xA;But Shannon isn&#39;t the first to get there. The Soviet mathematician Vladimir Kotelnikov - the same one behind the sampling theorem - had independently proved the absolute security of the one-time pad as early as 1941, in the very months of the Nazi invasion of the Soviet Union, in a report that, as far as anyone can tell, remains classified to this day. Unable to share it with the Allies, Shannon would have to rediscover the same properties on his own a few years later. The USSR, then, possesses the mathematical proof that its own code is unbreakable earlier and better than anyone else.&#xA;&#xA;The line of the sabotage.&#xA;In the very same span of time in which it deposits that proof, the Soviet apparatus begins to demolish it with its own hands. Between late 1943 and the end of the conflict, the surge in communications traffic and the relocation of Soviet industry towards the Urals push the personnel to reuse the cipher notebooks. To this is added the often-cited hypothesis of a more concentrated episode: with German troops just outside Moscow between 1941 and 1942, staff at the Centre are said to have printed more than one copy of the same key material. Immediate contributing cause or prolonged drift, the result is the same - and fatal, namely: the moment the same key enciphers two different messages, the one-time pad ceases to exist and becomes an ordinary cipher, attackable with statistics.&#xA;&#xA;Let&#39;s stop a moment, because this is the crack that everything else passes through, and it&#39;s worth seeing up close. Call M₁ and M₂ two plaintexts, K the reused key, and let&#39;s use XOR (addition without carry, the operation the pad uses to combine key and text). The two ciphertexts are C₁ = M₁ ⊕ K and C₂ = M₂ ⊕ K. An attacker knows neither the messages nor the key: they know only C₁ and C₂, fished out of the ether. But if they combine them with each other, something remarkable happens:&#xA;&#xA;  C₁ ⊕ C₂ = (M₁ ⊕ K) ⊕ (M₂ ⊕ K) = M₁ ⊕ M₂&#xA;&#xA;The key cancels out. It vanishes, because K ⊕ K is zero. What&#39;s left to the attacker is the XOR of the two plaintexts, with no trace of the secret remaining: and from there, knowing the structure of the underlying code and the statistics of the language - which letters and words recur, where the spaces fall - one begins to separate the two messages and reconstruct them. The perfection of the one-time pad lies entirely in the &#34;one&#34;: one key, one message. Reusing it a second time doesn&#39;t weaken it a little. It cancels it.&#xA;&#xA;Theory and sabotage, the proof and its demolition, in the same country and in the same years. It&#39;s the irony on which the entire story of VENONA rests.&#xA;&#xA;---&#xA;&#xA;VENONA: forty years inside a crack&#xA;&#xA;On the other side of the ocean, someone finds that crack. In 1943 the U.S. Army Signal Intelligence Service launches an ultra-secret project against Soviet diplomatic traffic, believed impregnable precisely because it was enciphered with a one-time pad. It changes name a couple of times - JADE, then BRIDE - before settling on a word chosen at random, with no meaning: VENONA.&#xA;&#xA;For a year, near-total darkness. The first breach is opened, in late 1943, by Lieutenant Richard Hallock, who works on Soviet commercial traffic - the so-called &#34;Trade&#34;, the messages dealing with matters of exchange - and notices that the Soviets are reusing the pad pages. Hallock and his colleagues recover a significant quantity of key tables, but it&#39;s only the outer layer of an onion. The messages aren&#39;t enciphered with the pad alone: they are first converted into numbers via a complex code, and then super-enciphered by adding the numerical stream of the one-time pad. With the pad broken, there remains the codebook to reconstruct, the one that turns words into figures.&#xA;&#xA;To that work sets a young analyst, Meredith Gardner - a linguist, a veteran of breaking Japanese diplomatic codes, who after the war taught himself Russian. It&#39;s he who penetrates what will turn out to be NKVD traffic, and later GRU, reconstructing the code piece by piece. The first reconstructions of the codebook he owes, by his own admission, to the linguist Marie Meyer; and it&#39;s worth recalling, against a certain spy-novel imagery, that most of the cryptanalysts were young women. The dates of the breakthrough are precise and close together: on 13 December 1946 Gardner reads a KGB message discussing the 1944 American presidential campaign; a week later, on 20 December 1946, he breaks another - sent to Moscow two years earlier - containing the list of the leading scientists working on the Manhattan Project. The proof that the atomic bomb had been infiltrated.&#xA;&#xA;As early as 1945 the very existence of VENONA had been revealed to the USSR by Bill Weisband, a Soviet agent embedded in the U.S. Army&#39;s SIGINT. The Soviets, that is, knew they could be read. But the mathematics of the pad offers no retroactive remedy: the messages already intercepted and enciphered with reused keys remained vulnerable regardless, whatever Moscow knew. There was no flaw to close; there was only an error already committed, frozen in the ether, that the Americans would go on squeezing for decades.&#xA;&#xA;---&#xA;&#xA;Putting a name to the ghosts&#xA;&#xA;From there the work is slow and stubborn. In the summer of 1947 Gardner produces enough results to write a &#34;Special Report&#34; laying out the project&#39;s potential to the intelligence leadership: it&#39;s that document which triggers the long collaboration between cryptanalysts and the FBI to put names to the spies. Because even with the pad broken and the code reconstructed, one last layer remains: the people hidden behind the cryptonyms, the code names. New York is TYRE, Washington CARTHAGE, San Francisco BABYLON, in an imagery drawn from classical antiquity. Some cryptonyms appear dozens of times and are fairly transparent; others once or twice only, and remain unknown to this day. The system, after all, betrays the same vice as the pad: sometimes the KGB reused the same covername for different people, untangled only by context or geography. Reuse as the recurring sin, at every level.&#xA;&#xA;When the cryptonyms find a face, the history of the Cold War is rewritten. Twenty-one decrypted cables, all from 1944-45, concern Julius Rosenberg, first &#34;Antenna&#34; and then &#34;Liberal&#34;. The Britons Kim Philby, Donald Maclean and Guy Burgess of the Cambridge Five fall, and with them dozens of other Soviet sources inside the American and British governments. And yet, in proportion, the haul is tiny: the Venona Papers are some 3,000 cables, forced slowly over a project lasting nearly forty years, from 1943 to 1980 - three thousand messages out of several hundred thousand intercepted, a laughable fraction, made possible only by the reuse of the keys.&#xA;&#xA;Important note: the cipher was not broken. The mathematics of Shannon and Kotelnikov held perfectly. No one &#34;solved&#34; the one-time pad. It was the wartime logistics of the Soviet apparatus - notebooks reprinted under pressure, keys reused to save time - that handed Moscow&#39;s secrets to the Americans for the next forty years. The theory was perfect. The hand that applied it was not.&#xA;&#xA;---&#xA;&#xA;The numbers still floating in the ether today&#xA;&#xA;You might think a technique of teleprinters and paper notebooks is archaeology. It isn&#39;t. The one-time pad, precisely because it&#39;s the only system that requires no computer and fears no amount of the enemy&#39;s computing power, is still today the tool of whoever must communicate with an agent in the field without leaving a trace. All it takes is a radio.&#xA;&#xA;Anyone with a shortwave receiver can stumble into them: synthetic voices, often female, reciting endless sequences of numbers in groups of five, sometimes preceded by a little tune or a signature melody. They&#39;re called number stations, they&#39;ve been transmitting for almost a century and for decades were an officially non-existent mystery. They aren&#39;t an urban legend: several espionage trials have confirmed their use, and the messages are typically enciphered with a one-time pad. Those groups of five digits are exactly the method of the cipher notebooks: the services have long converted words and phrases into groups of digits via a codebook, and then combine secret numbers with them by modular addition - the same carry-less sum we saw cancel out in VENONA, only done by hand on paper instead of electrically on tape.&#xA;&#xA;And if the number stations are the voice that calls the agent, at the other end of the line there was hardware built precisely to answer without being found: devices like the Soviet R-353 &#34;Proton&#34; (below), which pre-encoded the message onto a magnetic tape and then fired it off in Morse at very high speed - up to 250 words per minute - so as not to leave whoever was listening the time to locate the transmitter with radio direction finding. It&#39;s the same principle as the pad, but on the physical plane: if the one-time pad makes the content unassailable, the burst transmission makes the position of the sender unassailable. Two ways of vanishing, both perfect as long as the human link holds.&#xA;&#xA;The case that brought them to court is Cuban. The station nicknamed &#34;¡Atención!&#34; - catalogued by radio listeners as HM01 - becomes the first in the world to be officially and publicly accused of transmitting to spies, at the centre of a federal trial after the FBI, on 12 September 1998, dismantles the Cuban Wasp Network. The arrests number ten; the five who go to trial will go down in history as the &#34;Cuban Five&#34;.&#xA;&#xA;And here the lesson repeats itself. The one-time pad is mathematically perfect, and indeed the FBI doesn&#39;t break it. It doesn&#39;t need to: when it arrests the network, it recovers the pad software, the shortwave receivers and the decryption keys on floppy disk. Not only that. The enciphered messages found in the apartments matched the transmissions the FBI had recorded from the ether during surveillance. No one forced anything: the prosecution had in hand both the intercepted signal and the key taken from the drawer, and simply overlaid them - the two things every tradecraft manual insists you never keep together. The mathematically unbreakable secret defeated by a lock.&#xA;&#xA;And it&#39;s precisely here that the system&#39;s residual strength lies, when used well: the transmissions leave no digital trace, receiving a signal is not in itself proof of a crime, and the moment the pad is used and destroyed the cryptographic trail is cut. Nothing to intercept, nothing to decrypt after the fact. It&#39;s not archive theory: ¡Atención! is transmitting to this day, nearly thirty years on from those arrests. Provided, always, that no one forgets a floppy in a drawer.&#xA;&#xA;---&#xA;&#xA;The perfect cipher lives only on the blackboard&#xA;&#xA;Line up the pieces of this story: the one-time pad is, literally, the only encryption method humanity has ever conceived whose unbreakability we can prove. Used correctly, it remains among the most solid ever invented. And in a century it has never been beaten on its own ground - mathematics. It has always been beaten on ours.&#xA;&#xA;VENONA doesn&#39;t stem from a weakness of the cipher, but from the logistics of an apparatus under wartime pressure. The Wasp Network doesn&#39;t fall because someone decrypted its numbers, but because it leaves the disks in a drawer. The weak point is never the algorithm. It&#39;s the key to be distributed, the randomness hard to produce, the discipline impossible to maintain, the physical medium that survives and accuses. It&#39;s always the friction of the real world against an idea born frictionless.&#xA;&#xA;On the blackboard, in the clean abstraction where keys are random by definition, distribute themselves by magic and destroy themselves without leaving ash. But we live elsewhere: a world of approximate generators, of reprinted notebooks, of forgotten floppies, of exhausted people who at three in the morning cut a corner. The only mathematically unbreakable cipher we possess works perfectly everywhere - except in reality.&#xA;&#xA;And perhaps this is the most honest thing cryptography can teach us, well beyond cryptography: perfection is provable, but it is not inhabitable.&#xA;&#xA;---&#xA;&#xA;(This article was born from a private experiment: I tried to write my own implementation of the one-time pad in Python. The code worked, but in doing it I reconstructed, without meaning to, exactly the errors you&#39;ve read about here - the not-random-enough generator, the reused key, the details left in the clear. Touching with my own hands how easy it is to get it wrong was the best way to understand why, in a century, the perfect cipher has never held up on contact with us, poor imperfect human beings.)&#xA;&#xA;a href=&#34;https://remark.as/p/jolek78/one-time-pad-the-perfect-cipher&#34;Discuss.../a&#xA;&#xA;References and further reading&#xA;&#xA;The theory&#xA;&#xA;Claude E. Shannon, Communication Theory of Secrecy Systems, Bell System Technical Journal, vol. 28, no. 4, October 1949, pp. 656-715. The paper that proves perfect secrecy.&#xA;Claude E. Shannon, A Mathematical Theory of Cryptography, Memorandum MM 45-110-02, Bell Laboratories, 1 September 1945. The classified version, four years ahead of the open publication.&#xA;Claude E. Shannon, A Mathematical Theory of Communication, Bell System Technical Journal, vol. 27, 1948. The twin work that founds information theory.&#xA;Vladimir A. Kotelnikov, report on the absolute security of the Vernam cipher, 1941 (still classified). Independent proof, earlier than Shannon&#39;s.&#xA;&#xA;The history (VENONA)&#xA;&#xA;National Security Agency, VENONA: An Overview (Cryptologic Almanac, 50th Anniversary Series) - declassified official document.&#xA;National Security Agency, The Venona Story - official monograph on the cryptonyms and Gardner&#39;s decryptions.&#xA;NSA-CIA, Venona: Soviet Espionage and the American Response, 1939-1957, ed. R. L. Benson and M. Warner, 1996. The collection of the roughly 2,900 messages translated and made public from July 1995.&#xA;John Earl Haynes and Harvey Klehr, Venona: Decoding Soviet Espionage in America, Yale University Press, 1999. The reference work on the identifications.&#xA;Chronology of Gardner&#39;s decryptions (13 and 20 December 1946), the roles of Marie Meyer, Genevieve Feinstein, Cecil Phillips and Richard Hallock, pad reuse and the revelation of VENONA to the USSR by Bill Weisband (1945).&#xA;&#xA;The number stations&#xA;&#xA;Records of the Wasp Network / Cuban Five trial (arrests 12 September 1998; trial material declassified from 2001), on the use of the &#34;¡Atención!&#34; / HM01 station as evidence.&#xA;Crypto Museum, technical page on the Soviet R-353 &#34;Proton&#34; spy transceiver.&#xA;Priyom.org and ENIGMA 2000 - communities of radio listeners who catalogue and still monitor shortwave transmissions.&#xA;&#xA;#Cryptography #OneTimePad #VENONA #ColdWar #Espionage #InformationTheory #Shannon #NumberStations #History #Writing&#xA;&#xA;div class=&#34;center&#34;&#xD;&#xA;· 📝 Content shared under a href=&#34;https://creativecommons.org/licenses/by-sa/4.0/&#34; rel=&#34;license&#34;CC BY-SA 4.0/a ·&#xD;&#xA;· 🦣 a href=&#34;https://fosstodon.org/@jolek78&#34;Mastodon/a · 📸 a href=&#34;https://pixelfed.social/jolek78&#34;Pixelfed/a ·  📬 a href=&#34;mailto:jolek78@jolek78.dev&#34;Email/a ·&#xD;&#xA;· ☕ a href=&#34;https://liberapay.com/jolek78&#34;Support this work on Liberapay/a&#xD;&#xA;/div]]&gt;</description>
      <content:encoded><![CDATA[<p><em>There is a single encryption algorithm that mathematics declares unbreakable. Not “hard”: “impossible”, with a proof to back it up. And yet every time someone has tried to actually use it, it has fallen – not through a flaw in the mathematics, but through a banal human error. This is the story of a fascinating perfection that turns imperfect.</em></p>



<p>Almost all the cryptography we use every day – the kind that protects your bank account, your messages, your connection to this very site – rests on a bet: that certain mathematical problems are too slow or too hard to solve. Factoring six-hundred-digit numbers, computing discrete logarithms over elliptic curves: nobody today knows how to do it fast enough, and so we sleep soundly. But it&#39;s a peace with an expiry date, because “hard” is never “impossible”. The hardware changes, a cleverer algorithm comes along, quantum computing looms on the horizon, and the bet has to be renegotiated from scratch.</p>

<p>There is one, single exception. A cipher that isn&#39;t hard to break: it&#39;s impossible, and not in the advertising sense of the word. There&#39;s a proof, a theorem in the full sense. It&#39;s called the <a href="https://en.wikipedia.org/wiki/One-time_pad"><strong>one-time pad</strong></a>, the single-use notebook. In a world full of threats to privacy and of governments playing “big brother” without knowing the basics of modern cryptography, it&#39;s worth telling the story of this cipher and of how, for a century, the real world has found a way to sidestep it every single time without ever scratching it.</p>

<hr/>

<h2 id="an-invention-from-1917">An invention from 1917</h2>

<p>It all begins in a room at <strong>AT&amp;T</strong>.</p>

<p>In 1917 <strong>Gilbert Vernam</strong>, an engineer at Bell Labs, invents a cipher to protect teleprinter communications. Vernam&#39;s idea is elegant and simple: electrically combine each character of the message with a character read from a punched paper tape – what we can call “the key”. The combination is a reversible operation: whoever holds the same tape undoes it by running it backwards and recovers the message; whoever doesn&#39;t have it sees only noise. If the tape says one thing and the message says another, what comes out on the wire is a sum of the two, unreadable to anyone without that tape.</p>

<p>The structure is already very solid, but the conceptual leap is made by a soldier. Captain <strong>Joseph Mauborgne</strong>, of the U.S. Army Signal Corps, realises that if the sequence on the tape were completely random, cryptanalysis would become enormously harder. It&#39;s the intuition that turns Vernam&#39;s cipher into the true one-time pad: not just “any” key, repeated or derived from a phrase, but a truly random key, as long as the message and used only once. Hence the name: a notebook of sheets, each sheet a key, each sheet torn off and destroyed after use.</p>

<p>The intuition is right, but it hangs unproven. For a quarter of a century no one manages to explain <em>why</em> it works so well: the proof is missing that the system is not merely very robust, but mathematically unassailable.</p>

<hr/>

<h2 id="two-lines-running-in-the-same-year">Two lines running in the same year</h2>

<p>Here the story forks, and the two lines that set off run in parallel for the rest of the tale. On one side there&#39;s the theory, which between 1941 and 1949 arrives at locking down the cipher with a proof. On the other there&#39;s the practice, which in those very same years begins to sabotage it. It&#39;s worth keeping both in view, because the whole point of the affair lies precisely in the distance between the two.</p>

<p><strong><em>The line of the proof.</em></strong>
The proof comes from the man who, in those same years, is inventing the entire theory of information from scratch: <strong>Claude Shannon</strong>. The special status of the <strong>Vernam-Mauborgne</strong> pad is established by him, about twenty-five years after its invention. In his <strong>Communication Theory of Secrecy Systems</strong> – circulated as a classified report in 1945 and published openly in 1949 – Shannon proves that the one-time pad is unassailable because every possible plaintext is equally probable given any ciphertext. This property is called perfect secrecy.</p>

<p>But Shannon isn&#39;t the first to get there. The Soviet mathematician <strong>Vladimir Kotelnikov</strong> – the same one behind the sampling theorem – had independently proved the absolute security of the one-time pad as early as 1941, in the very months of the Nazi invasion of the Soviet Union, in a report that, as far as anyone can tell, remains classified to this day. Unable to share it with the Allies, Shannon would have to rediscover the same properties on his own a few years later. The USSR, then, possesses the mathematical proof that its own code is unbreakable earlier and better than anyone else.</p>

<p><strong><em>The line of the sabotage.</em></strong>
In the very same span of time in which it deposits that proof, the Soviet apparatus begins to demolish it with its own hands. Between late 1943 and the end of the conflict, the surge in communications traffic and the relocation of Soviet industry towards the Urals push the personnel to reuse the cipher notebooks. To this is added the often-cited hypothesis of a more concentrated episode: with German troops just outside Moscow between 1941 and 1942, staff at the Centre are said to have printed more than one copy of the same key material. Immediate contributing cause or prolonged drift, the result is the same – and fatal, namely: the moment the same key enciphers two different messages, the one-time pad ceases to exist and becomes an ordinary cipher, attackable with statistics.</p>

<p>Let&#39;s stop a moment, because this is the crack that everything else passes through, and it&#39;s worth seeing up close. Call <strong>M₁</strong> and <strong>M₂</strong> two plaintexts, <strong>K</strong> the reused key, and let&#39;s use <strong>XOR</strong> (addition without carry, the operation the pad uses to combine key and text). The two ciphertexts are <strong>C₁ = M₁ ⊕ K</strong> and <strong>C₂ = M₂ ⊕ K</strong>. An attacker knows neither the messages nor the key: they know only <strong>C₁</strong> and <strong>C₂</strong>, fished out of the ether. But if they combine them with each other, something remarkable happens:</p>

<blockquote><p><strong><em>C₁ ⊕ C₂ = (M₁ ⊕ K) ⊕ (M₂ ⊕ K) = M₁ ⊕ M₂</em></strong></p></blockquote>

<p>The key cancels out. It vanishes, because <strong>K ⊕ K</strong> is zero. What&#39;s left to the attacker is the XOR of the two plaintexts, with no trace of the secret remaining: and from there, knowing the structure of the underlying code and the statistics of the language – which letters and words recur, where the spaces fall – one begins to separate the two messages and reconstruct them. The perfection of the one-time pad lies entirely in the “<strong>one</strong>“: <strong>one key</strong>, <strong>one message</strong>. Reusing it a second time doesn&#39;t weaken it a little. It cancels it.</p>

<p>Theory and sabotage, the proof and its demolition, in the same country and in the same years. It&#39;s the irony on which the entire story of <strong>VENONA</strong> rests.</p>

<hr/>

<h2 id="venona-forty-years-inside-a-crack">VENONA: forty years inside a crack</h2>

<p>On the other side of the ocean, someone finds that crack. In 1943 the U.S. <strong>Army Signal Intelligence Service</strong> launches an ultra-secret project against Soviet diplomatic traffic, believed impregnable precisely because it was enciphered with a one-time pad. It changes name a couple of times – JADE, then BRIDE – before settling on a word chosen at random, with no meaning: <strong>VENONA</strong>.</p>

<p>For a year, near-total darkness. The first breach is opened, in late 1943, by Lieutenant <strong>Richard Hallock</strong>, who works on Soviet commercial traffic – the so-called “Trade”, the messages dealing with matters of exchange – and notices that the Soviets are reusing the pad pages. Hallock and his colleagues recover a significant quantity of key tables, but it&#39;s only the outer layer of an onion. The messages aren&#39;t enciphered with the pad alone: they are first converted into numbers via a complex code, and then super-enciphered by adding the numerical stream of the one-time pad. With the pad broken, there remains the codebook to reconstruct, the one that turns words into figures.</p>

<p>To that work sets a young analyst, <strong>Meredith Gardner</strong> – a linguist, a veteran of breaking Japanese diplomatic codes, who after the war taught himself Russian. It&#39;s he who penetrates what will turn out to be <strong>NKVD</strong> traffic, and later GRU, reconstructing the code piece by piece. The first reconstructions of the codebook he owes, by his own admission, to the linguist <strong>Marie Meyer</strong>; and it&#39;s worth recalling, against a certain spy-novel imagery, that most of the cryptanalysts were young women. The dates of the breakthrough are precise and close together: on 13 December 1946 Gardner reads a <strong>KGB</strong> message discussing the 1944 American presidential campaign; a week later, on 20 December 1946, he breaks another – sent to Moscow two years earlier – containing the list of the leading scientists working on the <strong>Manhattan Project</strong>. The proof that the atomic bomb had been infiltrated.</p>

<p>As early as 1945 the very existence of VENONA had been revealed to the USSR by Bill Weisband, a Soviet agent embedded in the U.S. Army&#39;s SIGINT. The Soviets, that is, <em>knew</em> they could be read. But the mathematics of the pad offers no retroactive remedy: the messages already intercepted and enciphered with reused keys remained vulnerable regardless, whatever Moscow knew. There was no flaw to close; there was only an error already committed, frozen in the ether, that the Americans would go on squeezing for decades.</p>

<hr/>

<h2 id="putting-a-name-to-the-ghosts">Putting a name to the ghosts</h2>

<p>From there the work is slow and stubborn. In the summer of 1947 Gardner produces enough results to write a “<strong>Special Report</strong>” laying out the project&#39;s potential to the intelligence leadership: it&#39;s that document which triggers the long collaboration between cryptanalysts and the <strong>FBI</strong> to put names to the spies. Because even with the pad broken and the code reconstructed, one last layer remains: the people hidden behind the cryptonyms, the code names. New York is <strong>TYRE</strong>, Washington <strong>CARTHAGE</strong>, San Francisco <strong>BABYLON</strong>, in an imagery drawn from classical antiquity. Some cryptonyms appear dozens of times and are fairly transparent; others once or twice only, and remain unknown to this day. The system, after all, betrays the same vice as the pad: sometimes the KGB reused the same covername for different people, untangled only by context or geography. Reuse as the recurring sin, at every level.</p>

<p>When the cryptonyms find a face, the history of the Cold War is rewritten. Twenty-one decrypted cables, all from 1944-45, concern <strong>Julius Rosenberg</strong>, first “Antenna” and then “Liberal”. The Britons Kim Philby, Donald Maclean and Guy Burgess of the <strong>Cambridge Five</strong> fall, and with them dozens of other Soviet sources inside the American and British governments. And yet, in proportion, the haul is tiny: the <strong>Venona Papers</strong> are some 3,000 cables, forced slowly over a project lasting nearly forty years, from 1943 to 1980 – three thousand messages out of several hundred thousand intercepted, a laughable fraction, made possible only by the reuse of the keys.</p>

<p>Important note: <strong>the cipher was not broken</strong>. The mathematics of Shannon and Kotelnikov held perfectly. No one “solved” the one-time pad. It was the wartime logistics of the Soviet apparatus – notebooks reprinted under pressure, <strong>keys reused</strong> to save time – that handed Moscow&#39;s secrets to the Americans for the next forty years. The theory was perfect. The hand that applied it was not.</p>

<hr/>

<h2 id="the-numbers-still-floating-in-the-ether-today">The numbers still floating in the ether today</h2>

<p>You might think a technique of teleprinters and paper notebooks is archaeology. It isn&#39;t. The one-time pad, precisely because it&#39;s the only system that requires no computer and fears no amount of the enemy&#39;s computing power, is still today the tool of whoever must communicate with an agent in the field without leaving a trace. All it takes is a radio.</p>

<p>Anyone with a shortwave receiver can stumble into them: synthetic voices, often female, reciting endless sequences of numbers in groups of five, sometimes preceded by a little tune or a signature melody. They&#39;re called <strong>number stations</strong>, they&#39;ve been transmitting for almost a century and for decades were an officially non-existent mystery. They aren&#39;t an urban legend: several espionage trials have confirmed their use, and the messages are typically enciphered with a one-time pad. Those groups of five digits are exactly the method of the cipher notebooks: the services have long converted words and phrases into groups of digits via a <strong>codebook</strong>, and then combine secret numbers with them by modular addition – the same carry-less sum we saw cancel out in VENONA, only done by hand on paper instead of electrically on tape.</p>

<p>And if the number stations are the voice that calls the agent, at the other end of the line there was hardware built precisely to answer without being found: devices like the Soviet <strong>R-353 “Proton”</strong> (below), which pre-encoded the message onto a magnetic tape and then fired it off in Morse at very high speed – up to 250 words per minute – so as not to leave whoever was listening the time to locate the transmitter with radio direction finding. It&#39;s the same principle as the pad, but on the physical plane: if the one-time pad makes the <em>content</em> unassailable, the burst transmission makes the <em>position</em> of the sender unassailable. Two ways of vanishing, both perfect as long as the human link holds.</p>

<p>The case that brought them to court is Cuban. The station nicknamed “<strong>¡Atención!</strong>” – catalogued by radio listeners as <strong>HM01</strong> – becomes the first in the world to be officially and publicly accused of transmitting to spies, at the centre of a federal trial after the FBI, on 12 September 1998, dismantles the Cuban <strong>Wasp Network</strong>. The arrests number ten; the five who go to trial will go down in history as the “Cuban Five”.</p>

<p>And here the lesson repeats itself. The one-time pad is mathematically perfect, and indeed the FBI doesn&#39;t break it. It doesn&#39;t need to: when it arrests the network, it recovers the pad software, the shortwave receivers and the decryption keys on floppy disk. Not only that. The enciphered messages found in the apartments matched the transmissions the FBI had recorded from the ether during surveillance. No one forced anything: the prosecution had in hand both the intercepted signal and the key taken from the drawer, and simply overlaid them – the two things every tradecraft manual insists you never keep together. The mathematically unbreakable secret defeated by a lock.</p>

<p>And it&#39;s precisely here that the system&#39;s residual strength lies, <strong>when used well: the transmissions leave no</strong> digital trace, receiving a signal is not in itself proof of a crime, and the moment the pad is used and destroyed the cryptographic trail is cut. Nothing to intercept, nothing to decrypt after the fact. It&#39;s not archive theory: ¡Atención! is transmitting to this day, nearly thirty years on from those arrests. Provided, always, that no one forgets a floppy in a drawer.</p>

<hr/>

<h2 id="the-perfect-cipher-lives-only-on-the-blackboard">The perfect cipher lives only on the blackboard</h2>

<p>Line up the pieces of this story: <strong>the one-time pad is, literally, the only encryption method humanity has ever conceived whose unbreakability we can prove.</strong> Used correctly, it remains among the most solid ever invented. And in a century it has never been beaten on its own ground – mathematics. It has always been beaten on ours.</p>

<p>VENONA doesn&#39;t stem from a weakness of the cipher, but from the logistics of an apparatus under wartime pressure. The Wasp Network doesn&#39;t fall because someone decrypted its numbers, but because it leaves the disks in a drawer. The weak point is never the algorithm. It&#39;s the key to be distributed, the randomness hard to produce, <strong>the discipline impossible to maintain</strong>, the physical medium that survives and accuses. It&#39;s always the friction of the real world against an idea born frictionless.</p>

<p>On the blackboard, in the clean abstraction where keys are random by definition, distribute themselves by magic and destroy themselves without leaving ash. But we live elsewhere: a world of <strong>approximate</strong> generators, of <strong>reprinted</strong> notebooks, of <strong>forgotten</strong> floppies, of <strong>exhausted</strong> people who at three in the morning cut a corner. The only mathematically unbreakable cipher we possess works perfectly everywhere – except in reality.</p>

<p>And perhaps this is the most honest thing cryptography can teach us, well beyond cryptography: <strong>perfection is provable, but it is not inhabitable</strong>.</p>

<hr/>

<p><em>(This article was born from a private experiment: I tried to write my own implementation of the one-time pad in Python. The code worked, but in doing it I reconstructed, without meaning to, exactly the errors you&#39;ve read about here – the not-random-enough generator, the reused key, the details left in the clear. Touching with my own hands how easy it is to get it wrong was the best way to understand why, in a century, the perfect cipher has never held up on contact with us, poor imperfect human beings.)</em></p>

<p><a href="https://remark.as/p/jolek78/one-time-pad-the-perfect-cipher">Discuss...</a></p>

<h2 id="references-and-further-reading">References and further reading</h2>

<h3 id="the-theory">The theory</h3>
<ul><li>Claude E. Shannon, <a href="https://archive.org/details/bstj28-4-656"><em>Communication Theory of Secrecy Systems</em></a>, <em>Bell System Technical Journal</em>, vol. 28, no. 4, October 1949, pp. 656-715. The paper that proves perfect secrecy.</li>
<li>Claude E. Shannon, <em>A Mathematical Theory of Cryptography</em>, Memorandum MM 45-110-02, Bell Laboratories, 1 September 1945. The classified version, four years ahead of the open publication.</li>
<li>Claude E. Shannon, <a href="https://en.wikipedia.org/wiki/A_Mathematical_Theory_of_Communication"><em>A Mathematical Theory of Communication</em></a>, <em>Bell System Technical Journal</em>, vol. 27, 1948. The twin work that founds information theory.</li>
<li><a href="https://en.wikipedia.org/wiki/Vladimir_Kotelnikov">Vladimir A. Kotelnikov</a>, report on the absolute security of the Vernam cipher, 1941 (still classified). Independent proof, earlier than Shannon&#39;s.</li></ul>

<h3 id="the-history-venona">The history (VENONA)</h3>
<ul><li>National Security Agency, <a href="https://www.nsa.gov/portals/75/documents/news-features/declassified-documents/crypto-almanac-50th/VENONA_An_Overview.pdf"><em>VENONA: An Overview</em></a> (Cryptologic Almanac, 50th Anniversary Series) – declassified official document.</li>
<li>National Security Agency, <a href="https://www.nsa.gov/portals/75/documents/about/cryptologic-heritage/historical-figures-publications/publications/coldwar/venona_story.pdf"><em>The Venona Story</em></a> – official monograph on the cryptonyms and Gardner&#39;s decryptions.</li>
<li>NSA-CIA, <a href="https://www.cia.gov/resources/csi/books-monographs/venona"><em>Venona: Soviet Espionage and the American Response, 1939-1957</em></a>, ed. R. L. Benson and M. Warner, 1996. The collection of the roughly 2,900 messages translated and made public from July 1995.</li>
<li>John Earl Haynes and Harvey Klehr, <em>Venona: Decoding Soviet Espionage in America</em>, Yale University Press, 1999. The reference work on the identifications.</li>
<li><a href="https://en.wikipedia.org/wiki/Venona_project">Chronology of Gardner&#39;s decryptions</a> (13 and 20 December 1946), the roles of Marie Meyer, Genevieve Feinstein, Cecil Phillips and Richard Hallock, pad reuse and the revelation of VENONA to the USSR by Bill Weisband (1945).</li></ul>

<h3 id="the-number-stations">The number stations</h3>
<ul><li>Records of the Wasp Network / <a href="https://en.wikipedia.org/wiki/Cuban_Five">Cuban Five</a> trial (arrests 12 September 1998; trial material declassified from 2001), on the use of the “¡Atención!” / HM01 station as evidence.</li>
<li>Crypto Museum, <a href="https://www.cryptomuseum.com/spy/r353/index.htm">technical page on the Soviet R-353 “Proton” spy transceiver</a>.</li>
<li><a href="https://priyom.org/">Priyom.org</a> and ENIGMA 2000 – communities of radio listeners who catalogue and still monitor shortwave transmissions.</li></ul>

<p><a href="https://jolek78.writeas.com/tag:Cryptography" class="hashtag"><span>#</span><span class="p-category">Cryptography</span></a> <a href="https://jolek78.writeas.com/tag:OneTimePad" class="hashtag"><span>#</span><span class="p-category">OneTimePad</span></a> <a href="https://jolek78.writeas.com/tag:VENONA" class="hashtag"><span>#</span><span class="p-category">VENONA</span></a> <a href="https://jolek78.writeas.com/tag:ColdWar" class="hashtag"><span>#</span><span class="p-category">ColdWar</span></a> <a href="https://jolek78.writeas.com/tag:Espionage" class="hashtag"><span>#</span><span class="p-category">Espionage</span></a> <a href="https://jolek78.writeas.com/tag:InformationTheory" class="hashtag"><span>#</span><span class="p-category">InformationTheory</span></a> <a href="https://jolek78.writeas.com/tag:Shannon" class="hashtag"><span>#</span><span class="p-category">Shannon</span></a> <a href="https://jolek78.writeas.com/tag:NumberStations" class="hashtag"><span>#</span><span class="p-category">NumberStations</span></a> <a href="https://jolek78.writeas.com/tag:History" class="hashtag"><span>#</span><span class="p-category">History</span></a> <a href="https://jolek78.writeas.com/tag:Writing" class="hashtag"><span>#</span><span class="p-category">Writing</span></a></p>

<div class="center">
· 📝 Content shared under <a href="https://creativecommons.org/licenses/by-sa/4.0/">CC BY-SA 4.0</a> ·
· 🦣 <a href="https://fosstodon.org/@jolek78">Mastodon</a> · 📸 <a href="https://pixelfed.social/jolek78">Pixelfed</a> ·  📬 <a href="mailto:jolek78@jolek78.dev">Email</a> ·
· ☕ <a href="https://liberapay.com/jolek78">Support this work on Liberapay</a>
</div>
]]></content:encoded>
      <guid>https://jolek78.writeas.com/one-time-pad-the-perfect-cipher</guid>
      <pubDate>Sat, 08 Aug 2026 06:00:00 +0000</pubDate>
    </item>
  </channel>
</rss>