Skip to content

Scytale Cipher

Wind a message round a rod of any width and read the unwound strip, the way the Spartan scytale is usually described. Set how many letters fit round the rod, see the message laid out face by face, or paste cipher text and let the tool try every rod size.

Mode

The rod's diameter, counted as the number of lines of text that fit round it (2–60). It is the key: the strip only reads back with the same number.

A real strip simply stops. Filling makes every turn complete; the X letters stay in the decoded text.

Keep

Whatever you keep is written on the strip like a letter; anything else is removed before the message is wound.

The rod and the strip

The message is written along the rod, one face after another. The strip touches each face in turn, so it reads the rod one column at a time, top face to bottom. The first column (blue) is the first turn of the strip.

4 letters round the rod, 5 long.

Face 1Iamhu
Face 2rtver
Face 3ybadl
Face 4yhelp

The unwound strip

Each group is one turn of the strip, read in order.

Iryy atbh mvae hedl urlp

How to Use the Scytale Cipher

  1. 1. Pick Encode or Decode. Encode winds your message onto the rod and gives the unwound strip; Decode wraps a strip back round a rod of the same size.
  2. 2. Set the rod. Enter how many letters fit round its circumference (2–60). This number is the whole key, so the reader needs the same one.
  3. 3. Choose what travels on the strip. Spaces and punctuation are removed by default. Tick them to keep them as ordinary characters, and keep them when you decode too.
  4. 4. Read the rod. The grid shows the message face by face, with the first turn of the strip in blue, and the strip is printed below it turn by turn. If you do not know the rod size, tick Try every rod size in Decode mode.

How the Scytale Works

A scytale (Greek skytálē, a staff) is a rod with a strip of leather or parchment wound round it in a spiral. The writer lays the message along the rod, one line per face, then unwinds the strip. Off the rod the letters read as nonsense, because each turn of the strip carries one letter from every line. Wound round a rod of the same width, the lines line up again.

Here is IAMHURTVERYBADLYHELP on a rod with four faces. The message fills the rod row by row, five letters along:

Four faces, five letters long

I A M H U
R T V E R
Y B A D L
Y H E L P

The strip touches each face in turn, so it reads the rod one column at a time, top to bottom: IRYY ATBH MVAE HEDL URLP, or IRYYATBHMVAEHEDLURLP unwound. That is the whole algorithm: with n letters and d faces, the rod is ⌈n ÷ d⌉ letters long, and plain letter number row × length + column becomes cipher letter column × d + row. If the last line is short, its empty cells are skipped when reading, so no padding is needed and the receiver works out the layout from the length alone. Tick the fill option to pad with X instead.

The same message on other rods

Letters round the rodCipher text
3IVLAEYMRHHYEUBLRAPTD
4IRYYATBHMVAEHEDLURLP
5IUEAHARRDEMTYLLHVBYP

Breaking a Scytale

The rod size is the only key, and it can only take values from 2 up to one less than the message length. A codebreaker tries each in turn and looks for the one that reads as language, which is what the Try every rod size option does: it decodes with every size and ranks the results by how many common English letter pairs and triples they contain. On a short message treat the order as a hint and read the top few lines yourself.

Mathematically, the scytale is a columnar transposition under a plain key (1, 2, 3 …), and the same grid read along other routes gives the other transposition ciphers. Like every transposition it leaves letter frequencies untouched, so a frequency count that looks like ordinary English is the sign that the letters were only moved.

Did the Spartans Really Encrypt With It?

Probably not, or not in the way textbooks say. Plutarch, writing around AD 100, gives the fullest account: Spartan commanders and the home authorities each kept a staff of the same thickness, and a dispatch could be read only by wrapping the strip round its twin. Aulus Gellius describes it in the second century AD. But the early sources that mention the scytale as a message carrier say nothing of scrambled letters, and the classicist Thomas Kelly argued in 1998 that it was originally a token for proving a messenger genuine, with the cipher story added centuries later. Nobody has found a surviving scytale, so the question stays open.

Frequently Asked Questions

What is a scytale cipher?
A transposition cipher in which a strip of parchment is wound round a rod, the message is written along the rod, and the strip is unwound. The letters are the same, but their order is scrambled. The rod's diameter is the key.
How do you decode a scytale without the rod?
Try every possible rod size. Write the cipher text in columns of each candidate height and read across; the right size gives readable text. Tick Try every rod size in Decode mode and the tool does this, listing the most English-looking results first and offering a button to adopt any of them.
What happens if the message does not fill the last turn?
The empty cells on the rod are skipped when the strip is read, so the cipher text is exactly as long as the message and decoding still works. If you would rather every turn be complete, tick the fill option; the X letters then appear in the decoded text and you remove them by hand.
Is the scytale the same as a rail fence or columnar cipher?
It is a close relative. The scytale is a columnar transposition with the columns taken in order, while the rail fence reads a zigzag instead of a grid. All three only rearrange letters, so all three keep the language's letter frequencies.
Did the Spartans really use the scytale as a cipher?
It is debated. Plutarch describes it as a way to send secret dispatches, but he wrote centuries after the Spartans' heyday, and Thomas Kelly has argued that it was at first a way to authenticate messengers. No ancient scytale has been found.
Is it spelled scytale or skytale?
Both appear. The Greek word is σκυτάλη (skytálē); Latin writers spelled it scytale, and English texts use either. Search engines treat them as the same thing, so this page covers both spellings.
Is the scytale cipher secure?
No. A message of n letters has fewer than n possible rod sizes, so every one can be tried in seconds. It teaches how transposition works, but it protects nothing.

Related Tools

More in Codes & Ciphers

See all Codes & Ciphers