Codebreakers have leaned on the same few tools for centuries: frequency counts, patient guessing and a sharp pencil. They're all in the box today.

The M-94 cylinder cipher, used by the US Army from 1922, scrambled messages with 25 lettered aluminium discs turned on a shaft. Photo: Daderot / Wikimedia Commons (CC0)