I have been struggling with a Hill cipher problem for many days, without any luck.
I have the following ciphertext, which I know is an encrypted excerpt from an Edgar Allan Poe story:
hcrjrg--dizj lt mcne lmisne dsdi sqqznbld bvt idyl ry dlt vftpj df dbbrf
omydb, (vl np oag utg cuudij) lmv txms bvh anaoxzie, iltc xt clmfmzj
hcfjlmg idp jd bvy ulmw, lby di nau koessyd jd tvxjxw bvi shjilqslndie
yxxy dbvx cwmyd--ffq zk ezgp pn n jzmj, nam nuusket, wfuusirsu kq zzg
y’wlrui, di utt cbone jly ef dbbrf omydv, rmv veznm ty wboiaeofjvbgc jd
vnl nj dwx jd utg cuudiu.
Bltsq dcztldimzgzf kszn, ssv zna xe ffisdpwk pvydc or hwxgas kn n
pvvnfjihp ilqltk jvrn n pbrycgnnihy oiekjpi xe utx wagy. Dltpv si
rhutlmh gi mtkl ogczhsqn evri bpvvlhjw. “Eltpv utpis ky uqsp nzld,”
eg csmn, “eltpv si sqgfmo naf abvld bbrf ginba fbqlmj”--lr hxrpilzlndi
degap nl wdntvveoxa ofgpvwkgc bvh anaoxzio’g pbvbf, avrz flt ksuec o
jfvbdy auomztmvek xe jc tvkjfpjcb, vc xpi vymgm fwgdyl Epgxz, di utd
adnzi ksxjlm xe uth Udnbbqng ij Xvumodi.
Utz gnyz fvlz hn eq icppilnsq, hwvlt pmog cqsc nuwbvdi uw utsi, lm uth
ufxvbtafm ffisdpwk ism-dzgtrgc xe utu ujcf--alt jfanooc opv gcvawelo uw
rhi “lgcjfrgruxz”--naj lb wimnappld tdqqzgm ftk fmh xcppilnsqauydi sn
ncpnaws. Ssv zna xe ffisdpwk zlgfi sf jc o xxlmj de lsi pbjcg hvrp htky
yzlnqw lfkpi tx tdxu tvb dyddy nfdp.
“OUYDLO--Utm gcppilnsqtp, txlms whptu jd kkgyzgws nyvlhjrqd acalmgcg
ijfztlndii sy dbvk cjce, idyk zyooipv utg cpirdwsg ia rytci tk tvlg
lmvlmjwczgf jmv kkfgxwzgn xxznln, ea gzlk s nbtxztb tfmdce idyy rh
U
In order to decrypt this text I tried the following method:
1) Removed all spaces, dashes, commas, etc.
2) Divided the text into digrams.
3) Found the most common digrams, which are shown in the picture below:
4) Knowing that the most common digrams in English are "th" and "he", I tried mapping different combinations of ciphertext digrams to "th" and "he" (for example, "th" -> "ut" & "he" -> "lm"), which gave me a 2x2 plaintext matrix and a 2x2 ciphertext matrix.
5) I solved the equation $K = C*P^{-1}$ (mod 26)
I repeated these steps for many different mappings to "th" and "he". Sometimes I could not invert $P$ and sometimes the $K$ was invalid. Looking at the ciphertext I believe it is very likely that "th" -> "ut", since it appears at the beginning of so many 3-letter words.
Could anyone please help me with this? Is there something I am doing wrong? Is the way to solve it to just keep mindlessly trying new combinations?
UT
in the ciphertext maps toTH
in the plaintext. Examining the ciphertext, my hypothesis was thatLT
in the ciphertext maps toHE
in the plaintext (based on what there is before occurences ofLT
), and that turned out to be correct. $\endgroup$