WARNING!:UNEDITED
The Columnar Cipher is a type of transposition cipher.
1. Get Keyword
2. If your keyword is Zebras, that is 6 letters. You would write 632415 because Z is the 6th highest letter in the word and E is the 3rd highest letter and so on
3. Then message under the numbers in rows of 6, because Zebra is a 6 letter word.
4. Write out 123456. Under the number write the letters from each column that match the numbers in the original line of numbers
Unencoded Rearranged
Column #: 4 2 5 3 1 1 2 3 4 5
W h i c h H H C W I
W r i s t T R S W I
W a t c h H A C W T
E s a r e E S R E A
S w i s s S W S S I
W r i s t T R S W I
W a t c h H A C W T
S e S ENow, 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.
Pinky_Dust