Key(R): s o r c e r y s o r c e r y
Key(R): 6 3 4 1 2 5 7 6 3 4 1 2 5 7
l a s e r b e l a s e r b e
a m s c a n b a m s c a n b
e m o d u l a e m o d u l a
t e d t o c a t e d t o c a
r r y m o r e r r y m o r e
i n t e l l i i n t e l l i
g e n c e t h g e n c e t h
a n r a d i o a n r a d i o
w a v e s w a v e s q r
matrix incomplete complete
ecdtm ecaer auool edsam merne nasso dytnr vbnlc rltiq laetr igawe baaei hor
Note that the left example has an incomplete matrix, which means that manual decrpytion requires a bit more care in filling in the columns, but which gives a more secure cipher, since there's no hints for the cryptanalyst as to the size. The right example has been filled with rubbish letters "qr" at the end, making recovery easier, but also leaving a hint as to the size, since 63 letters only divide up as 7x11 or 11x7 (ie a keylength of 7 or 11).
TNGTH CYIIL HEIHP ANCAA HGROU FOAEM ITELS OIPIN DSRRO EARER ANEEE FTILM SEAEA NSCES ONE
When drawing the blank grid out to fill in, if the key size doesn't divide exactly into the number of letters, must be careful to shorten the last columns filled appropriately
b command in krypto
HADVF NITHB CTSBE HTEGE SRYRN AMINR IAIST TETOO ETSAN GLIET GTDRS CYGAI TANAH FLNAU ETIEM EOHUE AELYR IIS
b 2 /THE - none match
b 3 /THE - none match
b 4 /THE - 2 matches, both rubbish
b 5 /THE - 1st match gives answer
-> b 5 /THE THEGR EATES TDISC OVERY OFMYG ENERA TIONI STHAT AHUMA NBEIN GCANA LTERH ISLIF EBYAL TERIN GHISA TTITU DES Accept (y/n/q)?y
Note that must be careful with case - here the ciphertext is
in uppercase, so must the search string. When the right permutation is
found, krypto doesn't tell you the key. Knowing the answer, you have to
manually write the message out in columns and work out the
permutation used. Also note that if you have more ciphertext, will get
lots of flase matches on a single word like THE. Really need to search
for 2 or more. This means using regular expressions for the
search string, rather than just a simple word, like:
/the.*the or /the.*and (krypto only).
Plaintext: NOWISTHETIMEFORALLGOODMEN
Key (W): L E M O N
2 1 3 5 4
L 2 O N W S I
E 1 H T E I T
M 3 E M F R O
0 5 L A L O G
N 4 D O M N E
Nihilist Cipher: HTEIT ONWSI EMFRO DOMNE LALOG
Diagonal Cipher: ONHET WSEML DAFII TRLOM OOGNE
Example - Davis Fig2.16 p27
\\ A D F G V X A K Z W R 1 F D 9 B 6 C L 5 F Q 7 J P G X G E V Y 3 A N V 8 O D H 0 2 X U 4 I S T M
Plaintext: PRODUCTCIPHERS Intermediate Text: FG AG VD VF XA DG XV DG XF FG VG GA AG XG Keyed Block Columnlar Transposition Matrix D E U T S C H Key 2 3 7 6 5 1 4 Sorted Order F G A G V D V F X A D G X V D G X F F G V G G A A G X G Ciphertext: DXGX FFDG GXGG VVVG VGFG CDFA AAXA
the cat only grinned when it saw alice it looked good natured she thought still it had very long claws and a great many teeth so she felt that it ought to be treated with respect
sgsog gnesh otrtb alvyi tayev hagwl hyine aieon moeai etddi bmtgd eurni ermhl wbeet rtlth dalwn rraos bidts ebele osmha
to see victory only when it is within the ken of the common herd is not the acme of excellence