
























Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!

























messages^ on^ the Internet^ (particularly^ on^ Usenet^ and^ E
‐mail).
-^ Each^ letter^ in^ the^ plaintext^ is^ substituted
with^ the^ ciphertext^ letter^ according^ to
the following^ mapping:^ p^ :^ ABCDEFGHIJKLMNOPQRSTUVWXYZ^ F ( p )^ :^ NOPQRSTUVWXYZABCDEFGHIJKLM • Example:^ –^ Plaintext:^ THIS IS A SECRET^ –^ Ciphertext:^ GUVF VF N FRPERG • The^ ROT‐^13 cipher^ is^ an^ involution^ (i.e.,
self‐inverse)^ so^ that^ encoding^ twice^ will
result^ in the^ original^ message. • This^ means^ that^ a^ separate^ decoding^ function
-^1 F is^ not^ needed.
a^ function^ defined by^ a^ parameter^ k^ representing^ the
number^ of^ letters^ that^ we^ “shift”
each plaintext^ letter:^ c^ =^ F ( p ) =^ p + k^ (mod 26) k • Where^ Julius^ Caesar^ used^ k =3,^ and
ROT‐^13 uses^ k =13.
-^ This^ cipher^ is^ called^ the^ Caesar
cipher.
-^ The^ parameter^ k^ is^ called^ the
key.
-^ Example:^ YVCCF^ Z^ YFGV^
-^ Caesar^ cipher^ is^ defined^ by:^ c^ =^ F ( p ) =^ p + k^ (mod 26) k •^ There^ are^ only^26 possible^ values
-^ Out^ of^ these^ 26,^ only^25 values
-^ This^ is^ called^ an^ exhaustive
-^ The^ language^ of^ the^ plaintext
-^ A^ generalization^ of^ the^ Caesar
-^ A^ single^ cipher^ alphabet^ (mapping
Cracking^ the^ simple
substitution^ cipher (^26) • There are 26! = ~4 x 10 possible keys
-^ Exhaustive^ key^ search^ is^ not^ practical •^ Simple^ substitution^ ciphers^ were
considered^ strong^ for^ many^ centuries
-^ In^850 CE,^ Arab/Iraqi^ scientist^ Abu
Yusuf^ Yaqub^ ibn^ Ishaq^ al‐Kindi^ published
his book^ “Risalah^ fi^ Istikhraj^ al‐Mu’amma”
( A^ Manuscript^ on^ Deciphering Cryptographic^ Messages ),^ which^ contains
the^ first^ ever^ published^ description
of how^ to^ crack^ simple^ substitution^ ciphers • The^ method^ he^ described^ is^ now^ known
as^ frequency^ analysis.
-^ Exploiting^ the^ regularities^ of^ the
language.
English^ language:Relative^ letter^ frequencies Letter A B C^ D^ E^ F^ G^ H^ I^
J^ K^ L^ M Frequency^ 7.4^ 1.0^ 3.1^ 4.2^ 13.0^ 2.
1.6^ 3.4^ 7.4^ 0.2^ 0.3^ 3.6^ 2. Letter^ N^ O^ P^ Q^ R^ S
T^ U^ V^ W^ X^ Y^ Z Frequency^ 7.9^ 8.0^ 2.7^ 0.3^ 8.0^ 6.
9.2^ 2.6^ 1.5^ 1.6^ 0.5^ 1.9^ 0.
-^ Ciphertext:^ R^ jrk^ hbxiu^ lk^ vai^ vzihova
ohlls^ lo^ rk^ rmrsvjikv ywbhtbkn.^ Ixise^ jlskbkn
ai^ vrgiu^ vai^ ihixrvls tlzk^ vl^ vai^ hlyye^ rkt^
hirxiu^ vai^ ywbhtbkn.^ Bk vai^ ixikbkn,^ ai^ nivu^ bkvl
vai^ ihixrvls,^ rkt,^ bo vaisi^ bu^ uljilki^ ihui^
bk^ vai^ ihixrvls^ --^ ls^
bo bv^ zru^ srbkbkn^ varv^ tre
--^ ai^ nliu^ yrpg^ vl^ abu ohlls^ tbsipvhe.^ Alzixis,
bo^ vaisi^ bu^ klylte^ ihui bk^ vai^ ihixrvls^ rkt^ bv
aruk'v^ srbkit,^ ai^ nliu
vl vai^ vikva^ ohlls^ rkt^ zrhgu
wm^ vzl^ ohbnavu^ lo uvrbsu^ vl^ abu^ sllj. • Letter^ frequency^ count^ (total^ =^344
letters): Letter^ A^ B^ C^ D^ E^
F^ G^ H^ I^ J^ K^ L^ M Frequency^^23 26 0 0
0 3 18 49 5 26 32 2 Letter^ N^ O^ P^ Q^ R^
S^ T^ U^ V^ W^ X^ Y^ Z Frequency^^9 10 2 0
19 11 19 37 3 9 6 6