Toolstia / Columnar transposition cipher
Columnar transposition cipher
A columnar transposition scrambles a message by writing it in rows under a keyword and reading the columns in alphabetical order of the key letters. Enter a keyword and your text, and the tool shows the grid and the result. It also decrypts.
The message is written in rows under the key, then the columns are read out in alphabetical order of the key letters. Only letters and digits are kept.
How it works
- Choose encrypt or decrypt and enter the key word.
- Type the message or ciphertext.
- Read the grid and copy the result.
How it works
The message is written across rows with one column per key letter. Columns are then read from top to bottom, starting with the column under the alphabetically first key letter.
Repeated letters
If a key letter repeats, the left-most one is read first, which is the usual convention.
Padding
If the last row is short, you can pad it with X. Without padding, decryption still works because the tool works out the shorter columns.
Letters and digits only
Spaces and punctuation are removed and everything is turned into capitals.
Questions
Is this secure?
No. Transposition ciphers can be broken by trying key lengths, so use this for puzzles and learning only. Everything happens in your browser, and nothing you enter is sent anywhere.
Can the key be a number?
Yes. Any mix of letters and digits works, from 2 to 20 characters.
Why is my decrypted text different?
Check that you used the same key and the same padding setting for both steps.