Tuesday, October 2, 2007

Columnar Transposition Cipher

This is also named as caesar’s box. This was not used by him but was only named to honor him.
This is one of the simplest of ciphers that has been used. Generally these messages have perfect squared number of letters. For example

B Y C T S I O O H S N U D E A G D E M G O E D E E

This message has 25 letters, now to decode it…
Easiest way is to create a matrix of 5X5 with these letters

B Y C T S
I O O H S
N U D E A
G D E M G
O E D E E

Now get the transpositional matrix by changing the rows into columns…

B I N G O
Y O U D E
C O D E D
T H E ME
S S A G E

Now write it in a single row…

“BINGOYOUDECODEDTHEMESSAGE”

“Bingo you decoded the message” this was the message…

Now you should have a pretty good idea of how to create your own secret message by using Columnar Transposition Cipher.

But not always the message have perfect squared number of letters…
Like “ THERE IS NO SECRET MESSAGES FOR YOU”
this is 29 letters… so now the next largest perfect square is 36 so create a matrix of 6 X 6.

T I E M G R
H S C E E Y
E N R S S O
R O E S F U
E S T A O



So now the encoded message is
“TIEMGRHSCEEYENRSSOROESFUESTAO”

Try to decode this

“WEESHTDOOTOULHGT”

“Yloemtmoeuseheuartneacvhctllaeoosponynmist”

Hint: try rectangular matrices as well….

Blessed be…

No comments: