Scytale Cipher
Encode and decode messages with the Scytale cipher.
Result
How it is calculated
The scytale cipher mimics a message written on a strip wound around a rod. The text is written in rows of c characters (the number of columns, 2 or more), then read down column by column. Row count is rows = ⌈length / c⌉. When the length is not a multiple of c, the first length mod c columns are one character taller, and decoding rebuilds those column lengths to restore the text. Encode and decode with the same column count. Every character is moved, including spaces and punctuation, so it counts toward the length. It works on bytes, so accented or non-Latin letters should be avoided. It is a transposition cipher and offers no real security.
Worked example
Encode HELPMEIAMTRAPPED (16 characters) with 4 columns. It makes 4 rows: HELP / MEIA / MTRA / PPED. Reading down the columns gives column 1 HMMP, column 2 EETP, column 3 LIRE, column 4 PAAD. Joined together the result is HMMPEETPLIREPAAD. Decoding that text with 4 columns returns the original message.
Common mistakes
- Decoding with a different number of columns than was used to encode; the output is scrambled text.
- Choosing 1 column, or more columns than letters; with fewer than 2 columns the tool gives no result and with too many the text barely changes.
- Removing the spaces on one side but not the other, which changes the length and the column heights.
- Leaving the mode on encode when pasting ciphertext, so the text is scrambled a second time.
- Using accented letters like ş or ü, which are multi-byte and may break apart.
About this calculator
This tool encrypts and decrypts text with the Scytale cipher, one of the oldest known transposition ciphers, said to have been used by Spartan military commanders as early as the 5th century BCE. A strip of parchment is wrapped around a wooden rod of a fixed diameter and the message is written across the wraps; unwound, the letters appear scrambled, and rewinding around a same-diameter rod (the "key") reveals the message again — the digital version uses a chosen number of columns in place of the rod's circumference.
History and cryptography students use it as a hands-on introduction to columnar transposition, the family of ciphers that rearranges letter positions rather than substituting letters.
Was this helpful?
You can pick up to 3 reactions.
Popular calculators
Loan Calculator
Monthly payment, total interest and full amortization schedule.
Percentage Calculator
Percent change, percent of, and ratio calculations.
Discount Calculator
Calculate final price, savings, and discount amount.
BMI Calculator
Body mass index from height and weight (metric or imperial).
Age Calculator
Compute your exact age in years, months and days from a birth date.
Compound Interest Calculator
Calculate the final amount and interest earned with compounding.
All Calculators
- Loan Calculator
- Profit Calculator
- Discount Calculator
- BMI Calculator
- Percentage Calculator
- Ideal Weight Calculator
- Age Calculator
- Pregnancy Due Date Calculator
- Compound Interest Calculator
- BMR Calculator (Basal Metabolic Rate)
- Tip Calculator
- Fuel Cost Calculator
- Date Difference Calculator
- Sleep Cycle Calculator
- Daily Water Intake Calculator
- Simple Interest Calculator
- Heart Rate Zones Calculator
- Running Pace Calculator
- Pet Age Calculator
- Calories Burned Calculator
- Macro Calculator
- TDEE Calculator (Total Daily Energy Expenditure)
- Waist-to-Hip Ratio Calculator
- Honor Roll Calculator
- One Rep Max (1RM) Calculator
- Ovulation Calculator
- Electricity Cost Calculator
- Unit Price Calculator
- Savings Goal Calculator
- Break-Even Point Calculator
- Paint Calculator
- Course Grade Average Calculator
- Business Days Calculator
- Time Duration Calculator
- Fuel Economy Calculator
- Temperature Converter
- Tile Calculator
- Aspect Ratio Calculator
- Roman Numeral Converter
- Goal Weight Timeline Calculator
- Salary Converter (Hourly to Annual)
- Credit Card Validator (Luhn)
- Body Surface Area (BSA) Calculator
- Feels-Like Temperature Calculator
- Ohm’s Law Calculator
- PPI (Pixel Density) Calculator
- Molar Mass Calculator
- Zodiac Sign Calculator (Western + Chinese)
- IBAN Validator
- Shoe Size Converter
- Country Info & Dialing Code Lookup
- Time Zone Difference (World Clock)
- CAGR (Compound Annual Growth Rate) Calculator
- Rule of 72 Calculator
- Blood Alcohol Content (BAC) Calculator
- Lean Body Mass (LBM) Calculator
- Pythagorean Theorem Calculator
- Speed Converter
- Download Time Calculator
- Date Calculator (Add/Subtract)
No calculators found
Comments (1)
The only secret in this cipher is the column count, so a ciphertext of length L has at most L minus 1 sensible keys. To break one, decode with 2, 3, 4 and so on until readable text appears. That is why it is a nice classroom demo and not protection. Spaces count as characters, so note whether they were kept. Do you have a puzzle message to try it on?