The American Civil War Gallery
The telegraph transformed warfare — and cryptography with it
The American Civil War was the first major conflict fought using the electric telegraph. Hundreds of miles of wire crisscrossed both sides' territory, and both sides knew the other was listening — wiretapping was common, well-documented, and expected. For the first time in history, all sensitive communications required encryption. This gallery presents three systems that decided the outcome of Lincoln's war.
The telegraph changed everything. Before the Civil War, a commander's dispatches traveled only as fast as a horse. With the telegraph, Lincoln could communicate with generals hundreds of miles away in minutes. But every telegraph operator along the wire could read every message — and both sides actively wiretapped enemy lines. The OR (Official Records) documents many such interceptions. Every strategic telegram had to be encrypted before transmission.
Anson Stager's route transposition cipher secured every Union telegraph from the first Battle of Bull Run to Appomattox. Words written in a matrix, columns read by a prearranged route — plus hundreds of code-word substitutions that made even correctly transposed messages meaningless without the code book. The Confederates never broke it.
The Confederate Signal Corps issued the Vigenère cipher as "the government cipher" — the same cipher that had been "unbreakable" for 300 years, broken by Kasiski just one year before the war began. Union cryptanalysts read Confederate dispatches regularly. Real keywords used throughout the war by Jefferson Davis, Robert E. Lee, and Kirby Smith.
Jefferson Davis arranged a dictionary code with Generals A.S. Johnston and J.E. Johnston using Noah Webster's 1857 Primary-School Pronouncing Dictionary. Words identified by page and word position: "ship" = (674)26. A communication failure of historic proportions: when J.E. Johnston used it with Robert E. Lee, Lee had a different dictionary and could not read the dispatch.
Webster 1857 edition required
Why the Union Won the Cipher War
- Stager Cipher: Purpose-built for telegraph security. Route transposition + code-word substitution evolved continuously throughout the war — from Cipher No. 6 to Cipher No. 5 (1865).
- Professional management: The U.S. Military Telegraph Corps, under Stager and Eckert, controlled all cipher usage. Operators were trained and supervised.
- Never broken: Despite Confederate wiretapping, no Stager-enciphered message was ever successfully decrypted by the Confederacy during the war.
- Vigenère cipher: Already known to be breakable since Kasiski's 1863 publication. Confederate Signal Corps adopted it anyway — or were unaware of its defeat.
- Key management failures: The same keywords used for months. "Manchester Bluff" secured all Confederate military departments for an extended period — once cracked, all messages fell.
- Dictionary code disaster: No standardized code book issued. Different generals used different dictionaries. Messages were unreadable even to intended recipients.
A phonetic encoding curiosity: The Stager cipher's code books lacked entries for all proper nouns. Operators improvised phonetically. "Gettysburg" was encoded as "get ties large" — the ending "-burg" (meaning fortification) mapped to the code word "large." "Rapidity" became "rape ditty." These improvised encodings sometimes created riddles even for the intended recipient.