Illustration depicting tools and ciphers operators.

Behind the codes

The hidden history of Coast Guard Unit #387

The history of early twentieth-century Coast Guard cryptography is largely defined by one name: Elizebeth Smith Friedman. Thanks to researchers such as investigative journalist Jason Fagone (The Woman Who Smashed Codes, 2017) and Coast Guard historian, Dr. David Rosen (“Mrs. Friedman—The Coast Guard’s ‘Cryptologist in Charge’” The Long Blue Line, 2020), her story is now widely accessible. Though often lost in Friedman’s story are the other members of her codebreaking team, known collectively as “Unit #387” (scholars are unsure as to where this title originated). The few dozen other individuals, who Friedman often managed and trained herself, contributed much to deciphering the messages of Prohibition-era rum running smugglers and enemy Axis agents around the globe during World War II. This is a brief telling of their story.

Black and white photograph of Elizebeth Friedman standing in front of possibly her residence during her career with U.S. Coast Guard. Elizebeth is carrying a bag and wearing a long coat and hat.

Credit: National Security Agency

Elizebeth Smith Friedman during her career as a cryptanalyst for the U.S. Coast Guard.

The small but very effective Coast Guard unit found its origins during Prohibition’s so-called Rum War (1920-1933), where organized criminal syndicates used cryptography to mask their illegal activities. Coast Guard and Treasury Department (or “T-Men”) cryptanalysts intercepted and cracked smugglers’ secret messages, then transmitted by short-wave radio. The service recruited Elizebeth Friedman to perform such operations in 1925 and only provided her with a single clerk (a woman, whose name remains unknown today) in 1929 when the work demands became unmanageable for one person.

Photo: Radio device with large diamond shaped antenna.

Model CGR-14-4 high frequency radio direction finders manufactured for the Coast Guard in accordance with specifications No. RRS-128.

Photo: Man with headphones standing next to a radio with antenna sitting on a large boulder.

Credit: Photo from “Rum War: The U.S. Coast Guard and Prohibition by Donald L. Canney”.

Direction finder model in use through 1930. Then a smaller, more modern apparatus was built that could be mounted in an automobile.

With ever-increasing numbers of incoming, scrambled communiques, however, Friedman’s team necessarily had to expand even further. At her request, the Coast Guard eventually established the more formal Unit #387 in July 1931, which was comprised of three additional cryptanalysts and two stenographers; Friedman was tasked with leading the cutting-edge unit. Their efforts disrupted the activities of many of these criminal organizations and led to several high-profile prosecutions before Prohibition’s end. As the service’s focus shifted from rum running to the looming storm of World War II, the Coast Guard placed an ever-increasing emphasis on studying the secret dispatches of international German and Japanese spy rings.

Photo: Coast Guard WWII Radio Station

Coast Guard WWII Radio Station

Photo: Commander Leonard T. Jones
Commander Leonard T. Jones

Unlike the Prohibition era that preceded it, where the identities of those in Unit #387 were largely shrouded in mystery, scholars today have a somewhat clearer picture of who occupied its ranks before and after America’s entry into the war. Via Franklin Roosevelt’s Executive Order 8929 of November 1941, the Coast Guard’s functions were eventually transferred over to the Navy Department. Friedman was still able to train and direct her team for a few months following the merger, but in June of 1942, the Coast Guard assigned Lt. Commander Leonard T. Jones to serve as its uniformed Officer in Charge. Friedman stayed on as the unit’s lead cryptanalyst.

Photo of cryptography explanation document displaying a table of numbers in 5 rows followed by an explanation.

Taken from Unit 387’s once- “TOP SECRET ULTRA” history, these two pages partly demonstrate how the team cracked Circuit 6-A’s polyalphabetic system using the keyword “GILKY” (highlighted in yellow) and in what way they solved one of the grille transposition ciphers from the Berlin-Mexico City circuit designated “2-B,” respectively.

Photo of cryptography explanation document displaying a table of numbers in 5 rows followed by an explanation.

--- -- Top Secret Ultra -- Thus with a message showing the letter indicator GILKY-enciphered on the 19th of the month, showing the figure group 01219, the method of encipherment was as follows: The last digit of the date group designated the column figures from the small number table: -13-4-6-1-0. The starting point of the successive self-generating alphabets was the letter formed by the intersection of the key-letter found in the standard alphabet in the 0-column of the alphabet table and the letter under column 13 for the first alphabet, column 4 for the second, etc. the five deciphering alphabets for this particular message therefore would be: (See 5 row table in the image) The type of alphabet square used by this circuit has been designated by the British as a Latin square, as distinguished from a Vigenère square, wherein the alphabets are successively generated from the same basic alphabet.

Photo of cryptography explanation document displaying a grid of numbers followed by an explanation.

-- Top Secret Ultra -- The overlay proved to be a rectangle of 13 by 19 cells, with only 135 of the cells cut out. In the process of enciphering a message, this grille was placed on a piece of cross-section paper and the message was written out from left to right in the normal manner through the cut-out cells were specially marked for the insertion of nulls in the message). Then the cipher text was taken out in columns according to a key written across the top of the diagram, but the columns were taken out in alternate fashion, proceeding down the odd columns and even ones. Any one of the eight corners of the grille (obverse or reverse) could be placed in the upper left-hand corner.

As the war progressed, the growing deluge of intercepted messages requiring attention led to even more calls for increased military staffing. In March 1943, for instance, records indicate that Unit #387 was composed of 12 total members. That number nearly doubled just four months later to 23, including 12 Women’s Reservists, or “SPARs” (for “Semper Paratus—Always Ready”). Between 1940-1945, the Coast Guard’s cryptologic team cracked over 8,500 of these encoded messages and had an undeniable impact on the ultimate Allied victory. The service disbanded Unit #387 in either late 1945 or early 1946, and its records remained classified until 2009.

Photo: Aerial view of SPARS in formation spelling out “SPARS” underlined.

SPARS in formation

Beyond Elizebeth Friedman’s well-deserved place in the history of Prohibition-era and World War II Coast Guard cryptography, approximately two dozen other cryptanalysts and related administrative personnel deserve consideration as well. Though most of these members’ names, ranks, and specific contributions are still anonymous today, historical studies have recently uncovered at least some information about those who worked for and alongside Mrs. Friedman in her secret fights against rum runners and Axis spy networks. Perhaps time and tenacity will reveal even more about the team once curiously known as “Unit #387.”

Photo: Inside a Coast Guard HF-DF Net Truck, a man reads from a paper while another seated man listens to headphones.

Coast Guard HF-DF Net Truck

National Coast Guard Museum insider tip: Elisabeth Friedman’s story will be told on Deck 3, Enforcers on the Sea.

Lt. j.g. Andrew Tompkins, Ph.D., served as the Curatorial Historian for the National Coast Guard Museum until October 2026. In addition to preparing academic presentations and publications for the museum, he also acted as the institution’s primary narrative contributor and as one of its public outreach representatives.