The idea in plain English: Imagine wrapping a strip of paper around a pencil, writing a message lengthwise across the wrapped paper, then unwrapping it. The letters are now scrambled — but if you wrap it around a pencil of the same thickness, the letters line up again and you can read the message. The diameter of the rod is the "key." A different rod diameter gives a different scrambling pattern.
Why this really exists: The Scytale was used by ancient Sparta (500 BC) for military communications. When a Spartan general needed to send a secret message, he'd wrap a leather strip around a staff of a specific diameter, write the message across it, and unwrap it. The messenger carried what looked like a meaningless strip of leather. The recipient needed a staff of the same diameter to read it. This is the earliest known transposition cipher — where letters are rearranged, not replaced.
Write "HELLO WORLD" across 4 rows (diameter = 4 letters around the rod):
The ciphertext appears as random letters. But with the correct rod diameter, the original message reappears.
1. The ciphertext is read left-to-right from the unwrapped strip
2. The "diameter" tells you how many letters fit around the rod
3. Calculate how many full turns the strip makes: rows = ceil(len(ciphertext) / diameter)
4. Fill a grid column-by-column with diameter columns and rows rows
5. Read the grid row-by-row → the decoded message!