试破译下面的密文诗。加密采用替代密码 使得26个字母(从a到z)中的每一个用其他某个字母替代
问题详情
试破译下面的密文诗。加密采用替代密码,使得26个字母(从a到z)中的每一个用其他某个字母替代(注意,不是按序替代)。密文中无标点符号。空格未加密。 kfd ktbd fzm eubd kfd pzyiom mztx ku kzyg ur bzha kfthcm ur mfudm zhx mftnm zhx mdzythc pzq ur ezsszcdm zhx gthcm zhx pfa kfd mdz tm sutythc fuk zhx pfdkfdi ntcm fzld pthcm sok pztk z stk kfd uamkdim eitdx sdruid pd fzld uoi efzk rui mubd ur om zid uok ur sidzkf zhx zyy ur om zid rzk hu foiia mztx kfd ezindhkdi kfda kfzhgdx ftb boef rui kfzk
请帮忙给出正确答案和分析,谢谢!
参考答案
正确答案:the time has come the walrus said to talk of many things of shoes and ships and sealing wax of cabbages and kings and why the sea is boiling hot and whether pigs have wings but wait a bit the oysters cried before we have our chat for some of us are out of breath and all of us are fat no hurry said the carpenter they thanked him much for that
对于替换密码,就是将每一个字母找到另一个字母进行代替,并且由于不是按序号替换,所以必须对每一个字母进行破解。首先从给出的密文中,可以很明显的发现其中出现了一个单独的“Z”,可以判断出应该为“a”(为“i”的可能性较小,因为出现了较多的以密文Z开始的单词,如zhx以及zid,可以排除z为i的可能性)。下面是一个字母频率表,使用这个表格,并且根据对密文的统计,来对密文进行解密。使用开始的以及结束的元音字母作为匹配的另一个准则。字母频率表如下:在英语中,出现次数最多,频率最高的有:单字母:e,t,o,a,n,i双字母组合:th,in,er,re,an三字母组合:the,ing,and,ion根据英文单词属性的特性,对密文进行破解,得到相应的表格为:由此可以得到相应的明文答案。