dark matter surrealism hplc

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Introduction To Codes, Ciphers, & Codebreaking
by Greg Goebel

[1.3] SIMPLE TRANSPOSITIONS
* For an example of a transposition, suppose Alice wants to send Bob the message:

meet me near the clock tower at twelve midnight tonite

One way to transpose this message is for Alice to "write in" the words vertically in five rows without any spaces as follows:
m e e t m
e n e a r
t h e c l
o c k t o
w e r a t
t w e l v
e m i d n
i g h t t
o n i t e

-- and then "read off" each column, top to bottom, as follows:
metowteio enhcewmgn eeekreihi tactaldtt mrlotvnte
METOWTEIOENHCEWMGNEEEKREI
HITACTALDTTMRLOTVNTE

Bob then "writes in" the message in five parts:
M E T O W T E I O
E N H C E W M G N
E E E K R E I H I
T A C T A L D T T
M R L O T V N T E

-- and then "reads off" the message from the columns:
MEETM ENEAR THECL OCKTO WERAT TWELV EMIDN IGHTT ONITE
MEETMENEARTHECLOCKTOWERAT
TWELVEMIDNIGHTTONITE
meet me near the clock tower at twelve midnight tonite

The ancient Spartans used a form of transposition cipher, in which a strip of parchment was wound in a spiral around a wooden cylinder known as a "scytale", and a message was written down the length of the cylinder. The strip was unwound, sent to the recipient, and then wound around a scytale of the same diameter to be read.
* A transposition of the form shown above is extremely easy to crack. Holmes just writes down the letters of the transposition in rows, increasing the length of the rows until he sees something that makes sense. For example, Holmes could take the transposition given above:

METOWTEIOENHCEWMGNEEEKREI
HITACTALDTTMRLOTVNTE

-- and chop it into rows that are, say, seven letters long:
M E T O W T E
I O E N H C E
W M G N E E E
K R E I H I T
A C T A L D T
T M R L O T V
N T E

This doesn't make any sense, so he tries rows of eight letters instead:
M E T O W T E I
O E N H C E W M
G N E E E K R E
I H I T A C T A
L D T T M R L O
T V N T E

This doesn't work either, though he does notice that by reading diagonally he can pick out words like "THE", which gives him a hint that he should try rows of nine letters:
M E T O W T E I O
E N H C E W M G N
E E E K R E I H I
T A C T A L D T T
M R L O T V N T E

This is the same result as Bob gets, and Holmes can now read the message down by columns just as Bob does.
There are ways to complicate the transposition. For example, Alice read off the transposition using top-to-bottom or "down" order. Reading it off in "up" order wouldn't complicate matters very much for Holmes, since he reads in different directions while he is trying to sort out a transposition and he would spot the same text, just written backwards.

But Alice could give Holmes a bigger headache by reading off columns in an alternating "down" and "up" fashion, or by reading off the transposition in a "spiral" pattern -- "down" on the left side, "right" across the bottom, "up" on the right side, "left" across the top to the second-to-left column, "down" again, and so on until all letters were transposed. Even more sophisticated transpositions use a "checkerboard" pattern. One scheme is a "knight's tour", a grid of numbers that specify the sequence of movements of a chess knight across the grid:

top>

 

 

1 4 53 18 55 6 43 20
52 17 2 5 38 19 56 7
3 64 15 54 31 42 21 44
16 51 28 39 34 37 8 57
63 14 35 32 41 30 45 22
50 27 40 29 36 33 58 9
13 62 25 48 11 60 23 46
26 49 12 61 24 47 10 59

* A key can be used in transpositions. For example, Alice and Bob could agree on the key word KANGAROO. To transpose her message, Alice would begin by searching "A", the first letter in the alphabet, for its position in KANGAROO, and mark that position with a "1":

KANGAROO
1

Since there's a second "A" in the key, she marks the second "A" with a "2":
KANGAROO
1 2

Next, she scans through for "B", "C", and so on, until she hits "G", and marks that as "3":
KANGAROO
1 32

Alice continues the scan through the alphabet until she has marked all the letters as follows:
KANGAROO
41532867

Now let's suppose that Alice wants to use this key to transpose the following plaintext:
So long and thanks for all the fish!

She writes out the plaintext beneath the key as follows, padding out with additional letters to ensure the grid comes out square:
K A N G A R O O
4 1 5 3 2 8 6 7
_______________

s o l o n g a n
d t h a n k s f
o r a l l t h e
f i s h n u l l

-- and "rotates" the grid of letters so that columns become rows:
K4: sdof
A1: otri
N5: lhas
G3: oalh
A2: nnln
R8: gktu
O6: ashl
O7: nfel

Next, she rearranges the rows by numerical order:
A1: otri
A2: nnln
G3: oalh
K4: sdof
N5: lhas
O6: ashl
O7: nfel
R8: gktu

-- and finally concatenates the rows to get the transposed text:
otri nnln oalh sdof lhas ashl nfel gktu
OTRINNLNOALHSDOFLHASASHLNFELGKTU

Decrypting this message is straightforward, with the procedure performed in reverse. Bob knows the key word KANGAROO has eight letters and that the message is 32 letters long, so he breaks it into eight strings of four letters, places each string in a row, numbers the strings, associates the numbers with the proper letter of KANGAROO, shuffles the rows around into the proper key word order, and then reads the message down by columns.
Alice could also perform a more devious form of transposition, by also using the key letter numbers to determine how many letters of the plaintext should be written:

K A N G A R O O
4 1 5 3 2 8 6 7
_______________

s o <- write out to "A1".
l o n g a <- write out to "A2".
n d t h <- write out to "G3".
a <- write out to "K4".
n k s <- write out to "N5".
f o r a l l t <- write out to "O6".
t h e f i s h n <- write out to "O7".
u l l p a d <- write out to "R8"

The letters are read down by column:
slnanftu oodkohl ntsrel ghafp alia lsd th n
SLNANFTUOODKOHLNTSRELGHAFPALIALSDTHN

This is harder for Bob to decrypt, but anyone who doesn't have the key will have a real headache. Transpositions and substitutions are often used together to provide additional security. Another way to improve the security of a transposition is to perform two consecutive transpositions on the same plaintext.

1 2 3 4 5 6 next>