Ciphers · ScytaleScytale cipher online k = 3

The scytale is a transposition cipher from ancient Sparta: a strip was wound around a rod, the message was written along it, and once unwound the strip was a jumble of letters. The letters stay the same, only their order changes. The key is the number of sides of the rod, that is the number of rows, from 2 to 20.

Everything runs in your browser — the text goes nowhere

01Encode02Diagram03How it works04Questions05Related
01

Encode

write in rows, read in columns
Rows · sides of the rod
3
Plain text
Result
WDVEIEASRRCEEOD
The link will contain the text (up to 500 characters) and settings — share it with care.
02

Diagram

a table of 3 rows
WEAREDISCOVERED
WEARE
DISCO
VERED

Shows the first line of the text, up to 60 characters.

03

How it works

Rows and columns

WEARE / DISCO / VERED

The text goes row by row into a table of k rows and is read column by column: WDVEIEASRRCEEOD.

The key is the rod

k = number of sides

How many letters fit in one turn of the strip. Without a rod of the same thickness the strip is a jumble.

No padding

the last row is shorter

The text is not padded with extra letters: decoding accounts for the short row by itself.

04

Frequently asked questions

The text is written row by row into a table of k rows and read column by column, top to bottom and left to right. WEAREDISCOVERED with k = 3 is laid out as WEARE, DISCO, VERED and read down the columns as WDVEIEASRRCEEOD. Letters are not replaced, only moved, so the ciphertext has exactly the letters of the original.

Updated