The stick that read the message
Spartan commanders carried a wooden rod called a scytale. You wound a strip of leather round it in a spiral, wrote along the length of the rod, then unwound the strip. What was left was a jumble of letters. Only a rod of exactly the same thickness would line them up again. The letters were never changed, only moved — the same idea as the rail fence.