Waving Flags and Scrambled Words

### Waving Flags and Scrambled Words

Codes at War · Signals

How do you send a text message across a smoky Civil War battlefield? You wave a giant flag. In the 1850s, U.S. Army surgeon Major Albert Myer and his assistant, Lieutenant E. Porter Alexander, invented wig-wag signaling. Signalmen stood on high ridges waving flags by day and flaming torches by night.

The code was brilliantly simple. Holding the pole straight up was the starting mark. Swooshing it left meant one, and swooshing it right meant two. Every letter was a combination of ones and twos. Because enemy lookouts could easily watch the flags from miles away, signalmen used two spinning brass circles—a cipher disk—to scramble the letters first.

Telegraph wires were not safe either, because spies routinely hooked their own listening devices right onto the lines. To protect President Abraham Lincoln's military telegrams, the Union used Stager's Route Cipher. Clerks wrote a message into a grid, swapped important words for fake code words, and read down the columns instead of across the rows.

If a spy tapped the wire, the telegram sounded like total nonsense. Only a receiver who knew the exact size of the grid and the secret up-and-down route could put the words back in order.