Myszkowski Transposition Cipher

Choose a mode, enter a keyword and your message.

How it is calculated

Only the letters A-Z of the keyword are used, in capitals. Each distinct letter gets a number by alphabetical order, and repeated letters share one number. All spaces are removed from the message and the rest (letters, digits, punctuation, case) is written into a grid, row by row, with as many columns as the keyword has letters; the last row may be short.

The ciphertext is read number by number, starting from 1. If a number belongs to one column, that column is read from top to bottom. If several columns share a number, they are read together row by row, left to right. Decoding rebuilds the same grid shape from the ciphertext length and fills it back in the same order. No padding is added, and the output has no spaces, so you should regroup it yourself if you want blocks of five. The result shows the key length and the mode used.

Worked example

Keyword TOMATO has 6 columns, numbered T=4, O=3, M=2, A=1, T=4, O=3. The message WE ARE DISCOVERED FLEE AT ONCE, with spaces removed, fills five rows: WEARED / ISCOVE / REDFLE / EATONC / E. Number 1 (column 4): ROFO. Number 2 (column 3): ACDT. Number 3 (columns 2 and 6, row by row): EDSEEEAC. Number 4 (columns 1 and 5, row by row): WEIVRLENE. Joined, the ciphertext is ROFOACDTEDSEEEACWEIVRLENE.

Try this example →

Common mistakes

  • Expecting ciphertext in groups of five or with spaces. The result is one continuous string, and spaces in the message are removed before encryption, so the decoded text also has no spaces.
  • Using a keyword with no repeated letter and expecting Myszkowski behaviour. Then every letter has its own number and the result is an ordinary columnar transposition.
  • Typing digits or symbols in the keyword. Only letters count, so "to mato!" is the same key as TOMATO, and a keyword with no letters gives no result.
  • Decoding with a different keyword, or after editing the ciphertext. The grid shape depends on the key length and the exact text length, so one lost letter breaks the decoding.
  • Treating it as secure. It only reorders letters, so letter frequencies stay unchanged; use it for puzzles and learning, not for protecting information.

About this calculator

The Myszkowski transposition cipher is a variant of the columnar transposition cipher where the encryption keyword is allowed to contain repeated letters. In a standard columnar transposition, each keyword letter gets its own unique rank to determine column reading order; in Myszkowski's version, repeated letters share the same rank number, and all columns sharing that number are read together left-to-right (row by row) before moving to the next rank — a subtle twist that changes the resulting ciphertext pattern compared to the classic method.

Named after Émile Myszkowski, who published the technique in 1902, this cipher is studied primarily in classical cryptography courses and puzzle/code-breaking communities as an example of how small structural changes to a transposition scheme affect its security and the statistical patterns left in ciphertext. It's a manual, pre-computer cipher — not used for real security today — but remains a staple teaching example for how transposition (as opposed to substitution) ciphers work.

Was this helpful?

You can pick up to 3 reactions.

Comments (1)

  • Editorial team

    What sets this cipher apart is the repeated key letters: in TOMATO the two Ts and two Os share a number, so those columns are read together, row by row. Encoding WEAREDISCOVEREDFLEEATONCE with that key gives ROFOACDTEDSEEEACWEIVRLENE. Try a key with no repeats and you get an ordinary columnar transposition. What keyword and message are you experimenting with?

Popular calculators

All Calculators