|
楼主 |
发表于 2009-8-7 15:42:43
|
显示全部楼层
将其代入原文,得:
......oSeX a hAndXed GeaXs aDo in 1640 the head of the KasOeXSiUUe
famiUG was siX hADo KasOeXSiUUe he was a wiUd and eSiU man he was PXAeU
and enVoGed hAntinD WeoWUe siX hADo feUU in UoSe with the daADhteX of
a faXmeX who was a neiDhKoAX of his the GoAnD woman was afXaid of the
eSiU hADo and aSoided him one daG hADo heaXd that heX fatheX and
KXotheXs weXe awaG he Onew that she woAUd Ke aUone so he Xode to the
faXm with fiSe oX siI of his eSiU fXiends theG made the DiXU Do KaPO to
KasOeXSiUUe haUU with them and UoPOed heX in a Xoom AWstaiXs then theG
sat down in the DXeat dininD haUU to dXinO as AsAaU theG dXanO KottUe
afteX KottUe and soon theG KeDan to sinD and UaADh and shoAt eSiU
woXds......(小写的是替换后的,大家可不看后面自己推推)
那就好看多了,文中有句......that heX BatheX and KXotheXs weXe......,
可推出X=R,又由oSeX a hAndXed GeaXs aDo等提示可推出A=U,S=V,G=Y,
D=G。注意到文中有单词haUU,查字典易知符合条件的只有HALL,所以U=L。
又有fiSe oX siI,即five or siI,那么I=X。由......the DiXU Do KaPO to
......推出K=B。由......he Onew that......推出O=K。由.....enVoGed
hAntinD WeoWUe......推出V=J,W=P。由......he was PXAeU.....和结合上下
文可知P=C。那么就有:
明码表 A B C D E F G H I J K L M N O P R S T U V W X Y
密码表 E K P R Z B D N L V O U H T Y W X M C A S F I G
最后整篇文章就出来了:
......Over a hundred years ago,in 1640,the head of the Baskerville
family was Sir Hugo Baskerville.He was a wild and evil man he was cruel
and enjoyed hunting people.Sir Hugo fell in love with the daughter of a
farmer who was a neighbour of his.The young woman was afraid of the
evil Hugo,and avoided him.One day,Hugo heard that her father and
brothers were away.He knew that she would be alone.So he rode to the
farm with five or six of his evil friends.They made the girl go back to
Baskerville Hall with them and locked her in a room upstairs.Then they
sat down in the great dining hall to drink.As usual they drank bottle
after bottle and soon they began to sing and laugh and shout evil
words......
总结一下吧,解单字母替换密码,首先要进行频率分析,确认几个频率较高和较
低的几个字母,再根据英文本身的特点进行分析,并寻找一定的证据证明自己的
结论,假设的同时要和标准频率对照一下,特别要注意上下文的连贯性,那就可
以了。大家不妨拿黑尘翼落的密文2做一下,稍难但出得不错哦。至于我的练习
明天才放出吧~~~
to be continue......
现放出上篇的练习:
1.MQPUOZ WOLN DNLWZOUVNG MWFNPND EMQE EMN YXATWSY YEWWG HWD SNEENDY QOG
MQPUOZ QIISUNG EMN DCSNY FMULM ZCUGN CY UO QSS HWDAY WH YNLDNE FDUEUOZY
EMN YWSCEUWO FQY NQYX NOWCZM EMN HUDYE ANYYQZN YCTAUEENG EW AN FQY YW
YMWDE EMQE UE FQY UAIWYYUTSN HWD AN EW GW AWDN EMQO EW YQX FUEM YWAN
LWOHUGNOLN EMQE EMN YXATWS WH EMN YEULBAQO FUEM TWEM QDAY NKENOGNG CI
UO EMN QUD YEWWG HWD N QY XWC QDN QFQDN N UY EMN AWYE LWAAWO SNEEND UO
EMN NOZSUYM QSIMQTNE QOG UE IDNGWAUOQENY EW YW AQDBNG QO NKENOE EMQE
NPNO UO Q YMWDE YNOENOLN WON FWCSG NKINLE EW HUOG UE AWYE WHENO WCE WH
HUHENNO YXATWSY UO EMN HUDYE ANYYQZN HWCD FNDN EMN YQAN YW UE FQY
DNQYWOQTSN EW YNE EMUY GWFO QY N UE UY EDCN EMQE UO YWAN LQYNY EMN
HUZCDN FQY TNQDUOZ Q HSQZ QOG UO YWAN LQYNY OWE TCE UE FQY IDWTQTSN
HDWA EMN FQX UO FMULM EMN HSQZY FNDN GUYEDUTCENG EMQE EMNX FNDN CYNG EW
TDNQB EMN YNOENOLN CI UOEW FWDGY U QLLNIENG EMUY QY Q MXIWEMNYUY QOG
OWENG EMQE N FQY DNIDNYNOENG TX EMN YEULBAQO FUEM TWEM QDAY NKENOGNG CI
UO EMN QUD
2.U B H X P P R A I L A F X K A E L U F L U L D G A A N V C D U M A K R
D U K L X C M A R H X P E U C C B U M K I L D I U I R U M V C H M A D M
R F X M A L A O A D I X M F A U E D R F X M G U M F A K I L D I U I E D
R D M U M G U I D I U X M E L U F L L A E X P C K M X I O A B P R A R U
M F A L A F X P C K M A G A O U M D Y U M A I L D I U I F X P C K F X M
A B O X M D M H X M A W P I I L A C D K H D M K R X M H K A D O E D I R
X M E A L D G A A M K A K W H I P O M U M Y I L A K D M F U M Y M A M I
X Y X X K E L A M I L A H L D G A R X X B I A M W A A M I L A D Y A M I
R X B A G U C D M K U I L U M S I L D I U L D G A B P C B U C C A K M H
V O X M U R A X B Y U G U M Y H X P R X M A I L U M Y P M P R P D C B X
O H X P O M X I A W X X S I L O A A B X O I H U R X P O I O D U M D M K
U B D M F H E A R L X P C K W A W D F S U M W D S A O R I O A A I B X O
K U M M A O
(提示:留意重复出现的连续多个字母,如I L D I。这种方法在解维尔纳斯密码
时很有用哦~~~)
下面再说说一些常用技巧:
1.辨认出E后,能轻易的标出H,因为H常常出现在E前,却很少位于其后;
2.Q的后面多是U;
3.当一个单词知道其中大部分字母后,不妨查查英文字典(当然,很懂E文的就不
用了~~~),如果字典里只有一个单词符合条件时,就会很快的知道其他字母。
上面的只是抛砖引玉,希望大家有什么好方法也告诉一下~~~
解密或许是个沉闷的过程,但当你找到解法后,又会很兴奋,大家ENJOY一下吧!
明天休息,后天再更新吧,偷懒中~~~
to be continued......
先给出上篇的答案吧:
1."Having once recognized, however, that the symbols stood for letters,
and having applied the rules which guide us in all forms of secret
writings, the solution was easy enough. The first message submitted to
me was so short that it was impossible for me to do more than to say,
with some confidence, that the symbol [of the stickman with both arms
extended up in the air] stood for E. As you are aware, E is the most
common letter in the English alphabet, and it predominates to so marked
an extent that even in a short sentence one would expect to find it
most often. Out of fifteen symbols in the first message, four were the
same, so it was reasonable to set this down as E. It is true that in
some cases the figure was bearing a flag, and in some cases not but it
was probable, from the way in which the flags were distributed, that
they were used to break the sentence up into words. I accepted this as
a hypothesis, and noted that E was represented by [the stickman with
both arms extended up in the air]
明码表 A B C D E F G H I J K L M N O P R S T U V W X Y
密码表 Q T U G N H Z M U R B S A O W I D Y E C P F K X
解答者:drhorse,菩提
(这篇的难点是E以特殊的形式出现,令单字母单词有三个)
2."If you use the code which I have explained," said Holmes, "you will
find that it simply means 'Come here at once.' I was convinced that it
was an invitation which he would not refuse, since he could never
imagine that it could come from anyone but the lady. And so, my dear
Watson, we have ended by turning the dancing men to good when they
have so often been the agents of evil, and I think that I have
fulfilled my promise of giving you something unusual for your
notebook. Three-forty is our train, and I fancy we should be back in
Baker Street for dinner."
明码表 A B C D E F G H I K L M N O P R S T U V W X Y
密码表 D W F K A B Y L U S C M M X V O R I P G E N H
解答者:hoon
(这篇的难点是M既替换N,又是本身,这是后来一些编码师用来迷惑破译者而设
的陷阱)
自从频率分析法出现后,单字母替换密码完全失去了效用。因此,密码编码者想
方设法去编一种更强大的密码。一些编码者对单字母替换密码做了一些改动,如
在编码过程中,加入一些特殊的字符,或者令一些字母不代表另一个字母,而是
代表一种程式,譬如是代表空格,代表删去前一个字母,代表换行等。但这一切
起的作用并不大,聪明的破译师仍然能在里面找到许许多多破译密码的线索。直
到有一天,佛罗伦萨的里昂巴蒂斯特·阿尔伯提提出了一种多字母替换密码,即
是用两个或两个以上的密码表交替使用来进行加密,如:
明码表 A B C D E F G H I J K L M N O P Q R S T U V W X Y Z
密码表1 Q W E R T Y U I O P A S D F G H K J L Z X C V B N M
密码表2 E K P R J B D N C V O U H T Y W Z X M L A S F I G Q
第一个密码表加密第一个字母,第二个密码表加密第二个字母,第一个密码表又
加密第三个字母,不断地重复......那么:
明文 F O R E S T
密文 Y Y J J L L
这样,按原来的方法进行频率分析就没有什么作用了。这只是两个密码表时的情
况,如果用三个,四个或以上的密码表后,破译就显得非常非常困难。即使是这
样,阿尔伯提未能把他的理念发展成一个完整的系统。这个任务当然由后人完成
了。经过几个人的努力,最后,维热纳尔终于将其完善了。他编出了一个系统而
有效的密码。那就是维热纳尔密码,其主要构成是维热纳尔方阵:
a b c d e f g h i j k l m n o p q r s t u v w x y z
1 B C D E F G H I J K L M N O P Q R S T U V W X Y Z A
2 C D E F G H I J K L M N O P Q R S T U V W X Y Z A B
3 D E F G H I J K L M N O P Q R S T U V W X Y Z A B C
4 E F G H I J K L M N O P Q R S T U V W X Y Z A B C D
5 F G H I J K L M N O P Q R S T U V W X Y Z A B C D E
6 G H I J K L M N O P Q R S T U V W X Y Z A B C D E F
7 H I J K L M N O P Q R S T U V W X Y Z A B C D E F G
8 I J K L M N O P Q R S T U V W X Y Z A B C D E F G H
9 J K L M N O P Q R S T U V W X Y Z A B C D E F G H I
10 K L M N O P Q R S T U V W X Y Z A B C D E F G H I J
11 L M N O P Q R S T U V W X Y Z A B C D E F G H I J K
12 M N O P Q R S T U V W X Y Z A B C D E F G H I J K L
13 N O P Q R S T U V W X Y Z A B C D E F G H I J K L M
14 O P Q R S T U V W X Y Z A B C D E F G H I J K L M N
15 P Q R S T U V W X Y Z A B C D E F G H I J K L M N O
16 Q R S T U V W X Y Z A B C D E F G H I J K L M N O P
17 R S T U V W X Y Z A B C D E F G H I J K L M N O P Q
18 S T U V W X Y Z A B C D E F G H I J K L M N O P Q R
19 T U V W X Y Z A B C D E F G H I J K L M N O P Q R S
20 U V W X Y Z A B C D E F G H I J K L M N O P Q R S T
21 V W X Y Z A B C D E F G H I J K L M N O P Q R S T U
22 W X Y Z A B C D E F G H I J K L M N O P Q R S T U V
23 X Y Z A B C D E F G H I J K L M N O P Q R S T U V W
24 Y Z A B C D E F G H I J K L M N O P Q R S T U V W X
25 Z A B C D E F G H I J K L M N O P Q R S T U V W X Y
26 A B C D E F G H I J K L M N O P Q R S T U V W X Y Z
它的明码表后有26个密码表,每个表相对前一个发生一次移位。如果只用其中某
一个进行加密,那么只是简单的恺撒移位密码。但用方阵中不同的行加密不同的
字母,它就是一种强大的密码了。加密者可用第7行来加密第一个字母,再用第25
行来加密第二个字母,然后根据第8行来加密第三个字母等。
现在来试一下,就用关键词FOREST来加密Better to do well than to say well.
关键词 F O R E S T F O R E S T F O R E S T F O R E S T F O R
明 文 b e t t e r t o d o w e l l t h a n t o s a y w e l l
密 文 G S K X W K Y C U S O X Q Z K L S G Y C J E Q P J Z C
(看第5行,F开头,明文是b,要用G来加密;第14行,O开头,明文是e,要用S来
加密,如此类推......) |
|