Columnar Transposition

A columnar transposition, also known as a row-column transpose, is a very simple cipher to perform by hand. First, you write your message in columns. Then, you just rearrange the columns. For example. I have the message, "Which wristwatches are swiss wristwatches." You convert everything to upper case and write it without spaces. When you write it down, make sure to put it into columns and number them. Let's use five columns.

 UnencodedRearranged
Column #: 4 2 5 3 1
W H I C H
W R I S T
W A T C H
E S A R E
S W I S S
W R I S T
W A T C H
E S
1 2 3 4 5
H H C W I
T R S W I
H A C W T
E S R E A
S W S S I
T R S W I
H A C W T
  S   E

Now, you just read the columns down in the order that you number them. Above, you will see the key is 4 2 5 3 1, which means you write down the last column first, then the second, then the fourth, the first, and finally the middle. When you are all done, you will get "HTHESTHHRASWRASCSCRSSCWWWESWWEIITAIIT". I can put the example's information into the encoder for you: Encode or Decode

This columnar transposition cipher implementation will also move spaces around, so you can take "a b c" with a key of "2 1" and get "  abc" (note the two spaces in front). I suggest you remove all spaces before you encode the text, but they should be preserved even if you don't. Newlines are ignored and not taken into consideration.

:
The resulting columnar key:
-

This is your encoded or decoded text:

You are courteous, diplomatic, and affable and may find happiness in politics and public service. Tyler Akins! <>
Contact Me - Legal Info