1. Using the Krypto Program
2. Command-line Interface
krypto [file] (Unix version)
jkrypto [file] (Java version)
jkrypto has a slightly different set of commands
3. GUI Interface
jkrypto -g [file]
4. Transposition Ciphers
5. Scytale cipher
6. Reverse (Mirror) cipher
Plain: I CAME I SAW I CONQUERED Cipher: DEREU QNOCI WASIE MACI
7. Rail Fence cipher
Plain: I A E S W C N U R D
C M I A I O Q E E
Cipher: IAESW CNURD CMIAI OQEE
8. Geometric Figure
Sinkov, Fig 20, p143
9. Key Concept for Transposition Ciphers
10. Row Transposition ciphers
Plain: THESIMPLESTPOSSIBLETRANSPOSITIONSXX
Key (R): 2 5 4 1 3
Key (W): 4 1 5 3 2
T H E S I S T I E H
M P L E S E M S L P
T P O S S S T S O P
I B L E T E I T L B
R A N S P S R P N A
O S I T I T O I I S
O N S X X X O X S N
Cipher: STIEH EMSLP STSOP EITLB SRPNA TOIIS XOXSN
Example - Davies p26 Fig 2.14
11. Using a Row Transposition cipher
Plain: ACONVENIENTWAYTOEXPRESSTHEPERMUTATION
Key (W): C O M P U T E R
Key (W): 1 4 3 5 8 7 2 6
A N O V I N C E
E W T A O T N Y
E R P E T S X S
H E P R T U E M
A O I N Z Z T Z
Cipher: ANOVI NCEEW TAOTN YERPE TSXSH EPRTU EMAOI NZZTZ
Example - Davies p26 Fig 2.15
12. Example Row Transposition
Key(R): sorcery => 6 3 4 1 2 5 7 laser beams can be modulated to carry more intelligence than radio waves ==> erasb lecam snabd umole atoed ctamo ryrre elntl iicee ntgha dnria oesav w
13. Decryption of a Row Transposition cipher
14. Cryptanalysis of Row Transposition ciphers
15. Example Cryptanalysis
LDWOE HETTS HESTR HUTEL OSBED EFIEV NT
2: LD WO EH ET TS HE ST RH UT EL OS BE DE FI EV NT - NO
3: LDW OEH ETT SHE STR HUT ELO SBE DEF IEV NT - NO
4: LDWO EHET TSHE STRH UTEL OSBE DEFI EVNT - NO
5: LDWOE HETTS HESTR HUTEL OSBED EFIEV NT - NO
6: LDWOEH ETTSHE STRHUT ELOSBE DEFIEV NT - YES!!!
WEHOLD THESET RUTHST OBESEL FEVIDE NT or
WE HOLD THESE TRUTHS TO BE SELF EVIDENT
16. Unicity Distance for Row Transposition ciphers
N = H(K) / D = log2 d! / D = d log2(d/e) / 3.2
| d | N |
|---|---|
| 3 | 0.12804 |
| 4 | 0.66877 |
| 5 | 1.31885 |
| 6 | 2.05608 |
| 7 | 2.86579 |
17. Summary
18. Exercises
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
onind aseni huaot iiret vhsea usies aadrw ginon wnfee turip onocs iucnr ofgmr tecrn alavj osaum etnrm vpaoi ncloa cuval oongl ssimt tnooi girtn cehta tviyi rasey eisnd nstti eehnd yespl lpoau aetrd haeos blued eawor spfso ebidl enarg yhtse nyaci seria ygnfl uereq utnrs eafac odnlv iaccn mrtoe rsrea ucorc wniig lhtoc odufs kmseo lnaad av