In cryptography, frequency analysis is the study of the frequency of letters or groups of letters in a ciphertext. The method is used as an aid to breaking substitution ciphers (e.g. mono-alphabetic substitution cipher, Caesar shift cipher, Vatsyayana cipher).
Frequency analysis consists of counting the occurrence of each letter in a text. Frequency analysis is based on the fact that, in any given piece of text, certain letters and combinations of letters occur with varying frequencies. For instance, given a section of English language, letters E, T, A and O are the most common, while letters Z, Q and X are not as frequently used.
The following chart shows the frequency of each letter of the alphabet for the English language:
We can assume that most samples of text written in English would have a similar distribution of letters. However this is only true if the sample of text is long enough. A very short text may lead to a significantly different distribution.
When trying to decrypt a cipher text based on a substitution cipher, we can use a frequency analysis to help identify the most recurring letters in a cipher text and hence make hypothesis of what these letters have been encoded as (e.g. E, T, A, O, etc). This will help us decrypt some of the letters in the text. We can then recognise patterns/words in the partly decoded text to identify more substitutions.
You can perform a frequency analysis on the following text to try to decrypt this text step by step:
Your Task:
Complete a frequency analysis to decrypt the following ciphers.
JPXXJI SOIL JVUI UEON XKCX XKI TCJCWXPW IYAPGI KCL LIWGIXJM HITVE WOELXGVWXPOE OE C EIN CGYOGIS LACWI LXCXPOE IDIE YOGI AONIGQVJ XKCE XKI QPGLX SGICSIS SICXK LXCG.
NKIE WOYAJIXIS, XKPL VJXPYCXI NICAOE NPJJ LAIJJ WIGXCPE SOOY QOG XKI LYCJJ HCES OQ GIHIJL LXGVTTJPET XO GILXOGI QGIISOY XO XKI TCJCZM…”
SYRWOXG KNS WFSRWSW OIBSFORJ HKRFQJSSK, R GFPAB PQ QFSSWPI QOGNKSFH JSW TC JADS HDCVRJDSF NRH SHKRTJOHNSW R XSV HSMFSK TRHS PX KNS FSIPKS OMS VPFJW PQ NPKN.
KNS SYOJ JPFW WRFKN YRWSF, PTHSHHSW VOKN QOXWOXG CPAXG HDCVRJDSF, NRH WOHBRKMNSW KNPAHRXWH PQ FSIPKS BFPTSH OXKP KNS QRF FSRMNSH PQ HBRMS…”
ZRIH HTEBFBZIHZ SLWTSTQZ, PQVTF ZRT GTBVTFHRIE LD ZRT SYHZTFILPH OLPQZ VLLAP, RBH SBVT IZ VIDDIOPGZ DLF ZRT GISIZTV QPSKTF LD CTVI AQIXRZH ZL SBIQZBIQ ETBOT BQV LFVTF IQ ZRT XBGBJY.
HTQBZLF BSIVBGB, ZRT DLFSTF NPTTQ LD QBKLL, IH FTZPFQIQX ZL ZRT XBGBOZIO HTQBZT ZL WLZT LQ ZRT OFIZIOBG IHHPT LD OFTBZIQX BQ BFSY LD ZRT FTEPKGIO ZL BHHIHZ ZRT LWTFMRTGSTV CTVI…”
CZMVU R DRE NYF JRZCVU KF JVR
REU YV KFCU LJ FW YZJ CZWV
ZE KYV CREU FW JLSDRIZEVJ
JF NV JRZCVU LG KF KYV JLE
‘KZC NV WFLEU R JVR FW XIVVE
REU NV CZMVU SVEVRKY KYV NRMVJ
ZE FLI PVCCFN JLSDRIZEV
NV RCC CZMV ZE R PVCCFN JLSDRIZEV
PVCCFN JLSDRIZEV, PVCCFN JLSDRIZEV
NV RCC CZMV ZE R PVCCFN JLSDRIZEV
PVCCFN JLSDRIZEV, PVCCFN JLSDRIZEV
REU FLI WIZVEUJ RIV RCC RSFRIU
DREP DFIV FW KYVD CZMV EVOK UFFI
REU KYV SREU SVXZEJ KF GCRP
NV RCC CZMV ZE R PVCCFN JLSDRIZEV
PVCCFN JLSDRIZEV, PVCCFN JLSDRIZEV
NV RCC CZMV ZE R PVCCFN JLSDRIZEV
PVCCFN JLSDRIZEV, PVCCFN JLSDRIZEV
(WLCC JGVVU RYVRU DI. GRIBVI, WLCC JGVVU RYVRU
WLCC JGVVU RYVRU ZK ZJ, JVIXVREK
RTKZFE JKRKZFE, RTKZFE JKRKZFE
RPV, RPV, JZI, WZIV
TRGKRZE, TRGKRZE)
RJ NV CZMV R CZWV FW VRJV
VMVIPFEV FW LJ YRJ RCC NV EVVU (YRJ RCC NV EVVU)
JBP FW SCLV (JBP FW SCLV) REU JVR FW XIVVE (REU JVR FW XIVVE)
ZE FLI PVCCFN JLSDRIZEV (ZE FLI PVCCFN, JLSDRIZEV, YR YR)
NV RCC CZMV ZE R PVCCFN JLSDRIZEV
PVCCFN JLSDRIZEV, PVCCFN JLSDRIZEV
NV RCC CZMV ZE R PVCCFN JLSDRIZEV
PVCCFN JLSDRIZEV, PVCCFN JLSDRIZEV
NV RCC CZMV ZE R PVCCFN JLSDRIZEV
PVCCFN JLSDRIZEV, PVCCFN JLSDRIZEV
NV RCC CZMV ZE R PVCCFN JLSDRIZEV
PVCCFN JLSDRIZEV, PVCCFN JLSDRIZEV”
WH WGB’H VOFR HC RC
BCHVWBU HC YWZZ CF RWS TCF
OBR BC FSZWUWCB, HCC
WAOUWBS OZZ HVS DSCDZS
ZWJWBU ZWTS WB DSOQS
MCI, MCI AOM GOM W’A O RFSOASF
PIH W’A BCH HVS CBZM CBS
W VCDS GCASROM MCI KWZZ XCWB IG
OBR HVS KCFZR KWZZ PS OG CBS
WAOUWBS BC DCGGSGGWCBG
W KCBRSF WT MCI QOB
BC BSSR TCF UFSSR CF VIBUSF
O PFCHVSFVCCR CT AOB
WAOUWBS OZZ HVS DSCDZS
GVOFWBU OZZ HVS KCFZR
MCI, MCI AOM GOM W’A O RFSOASF
PIH W’A BCH HVS CBZM CBS
W VCDS GCASROM MCI KWZZ XCWB IG
OBR HVS KCFZR KWZZ ZWJS OG CBS”
SPAASL KVLZ SBRL RUVD AOHA AOL NHSHJAPJ LTWPYL OHZ ZLJYLASF ILNBU JVUZAYBJAPVU VU H ULD HYTVYLK ZWHJL ZAHAPVU LCLU TVYL WVDLYMBS AOHU AOL MPYZA KYLHKLK KLHAO ZAHY.
DOLU JVTWSLALK, AOPZ BSAPTHAL DLHWVU DPSS ZWLSS JLYAHPU KVVT MVY AOL ZTHSS IHUK VM YLILSZ ZAYBNNSPUN AV YLZAVYL MYLLKVT AV AOL NHSHEF…”