第一篇:几种常见密码形式:
几种常见密码形式:
1、栅栏易位法。
即把将要传递的信息中的字母交替排成上下两行,再将下面一行字母排在上面一行的后边,从而形成一段密码。
举例:
teogsdyutaennhlnetamshvaed
解:
将字母分截开排成两行,如下
t e o g s d y u t a e n n
h l n e t a m s h v a e d
再将第二行字母分别放入第一行中,得到以下结果
the longest day must have an end.
课后小题:请破解以下密码
teieeemrynwetemryhyeoetewshwsnvraradhnhyartebcmohrie
2、恺撒移位密码。
也就是一种最简单的错位法,将字母表前移或者后错几位,例如:
明码表:abcdefghijklmnopqrstuvwxyz
密码表:defghijklmnopqrstuvwxyzabc
这就形成了一个简单的密码表,如果我想写frzy(即明文),那么对照上面密码表编成密码也就是iucb(即密文)了。密码表可以自
己选择移几位,移动的位数也就是密钥。
课后小题:请破解以下密码
dtzwkzyzwjijujsixtsdtzwiwjfrx
3、进制转换密码。
比如给你一堆数字,乍一看头晕晕的,你可以观察数字的规律,将其转换为10进制数字,然后按照每个数字在字母表中的排列顺序,
拼出正确字母。
举例:110 10010 11010 11001
解:
很明显,这些数字都是由1和0组成,那么你很快联想到什么?二进制数,是不是?嗯,那么就试着把这些数字转换成十进制试试,得
到数字6 18 26 25,对应字母表,破解出明文为frzy,呵呵~
课后小题:请破解以下密码
11 14 17 26 5 25
4、摩尔斯密码。
翻译不同,有时也叫摩尔密码。*表示滴,-表示哒,如下表所示比如滴滴哒就表示字母u,滴滴滴滴滴就表示数字5。另外请大家不要
被滴哒的形式所困,我们实际出密码的时候,有可能转换为很多种形式,例如用0和1表示,迷惑你向二进制方向考虑,等等。摩尔斯
是我们生活中非常常见的一种密码形式,例如电报就用的是这个哦。下次再看战争片,里面有发电报的,不妨自己试着破译一下电报
内容,看看导演是不是胡乱弄个密码蒙骗观众哈~由于这密码也比较简单,所以不出小题。
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 --**
数字
0 ----- 1 *---- 2 **--- 3 ***-- 4 ****-
5 ***** 6 -**** 7 --*** 8 ---** 9 ----*
常用标点
句号 *-*-*- 逗号 --**-- 问号 **--**
长破折号 -***- 连字符 -****- 分数线 -**-*
5、字母频率密码。
关于词频问题的密码,我在这里提供英文字母的出现频率给大家,其中数字全部是出现的百分比:
a 8.2 b 1.5 c 2.8 d 4.3
e 12.7 f 2.2 g 2.0 h 6.1
i 7.0 j 0.2 k 0.8 l 4.0
m 2.4 n 6.7 o 7.5 p 1.9
q 0.1 r 6.0 s 6.3 t 9.1
u 2.8 v 1.0 w 2.4 x 0.2
y 2.0 z 0.1
词频法其实就是计算各个字母在文章中的出现频率,然后大概猜测出明码表,最后验证自己的推算是否正确。这种方法由于要统计字
母出现频率,需要花费时间较长,本人在此不举例和出题了,有兴趣的话,参考《跳舞的小人》和《金甲虫》。
6、维热纳尔方阵。
上面所说的频率分析,很容易破解较长篇幅的密文,于是维热纳尔继承前人的经验,创造出了这个维热纳尔方阵,从而克服了词频分
析轻易能够破解密码的弊端,成为一种较为强大的密码编译形式。
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 ……此处隐藏7339个字……on the phone.
打电话的是马林教授。(强调主语)
it is people, and not things that are decisive.
起决定作用的是人而不是物。(强调主语)
it was fifteen years ago that i first visited the united states.
我第一次出访美国是在十五年前了。(强调时间状语)
it is the result and not the precedure that they are interested in.
他们感兴趣只是结果而不是处理过程。(强调介词in的宾语)
it was the harvard law school that she graduated from.
她是从哈佛大学法学院毕业的。(强调介词from的宾语)
it is this virus that dr watson first detected in his lab.
华生大夫首先在他的实验室里发现的是这种病毒。(强调宾语)
notes:1.连词that不可改换为which或when, where等。不论强调的是主语、宾语或是时间、地点状语
都必须用that.
2.如果强调的主语是人,也可以用who作连词。
3.用what引导的名词从句来强调主语或宾语。
what hurt me most was her indifference.
最让我伤心的是她漠不关心的态度。
(比较:her indifference hurt me most.)
what really interests her is the design and not the material.
使她真正感兴趣的是服装设计而不是面料。
(比较:the design and not the material interests her.)
what i need is some rest.
我需要休息。
(比较:i need some rest.)
what they lack is experience.
他们缺少的是经验。
(比较:they lack experience.)
what i like about her is her style.
我所喜欢的是她的风格。
(比较:i like her style.)
what she really enjoys doing is watching tv or listening to music.
她真正乐意做的是看看电视或听听音乐。
(比较:she enjoys watching tv or listening to music.)
what they value most is freedom and independence.
他们最珍贵的是自由和独立。
(比较:they value freedom and independence most.)
4.改变正常语序,将所强调的状语置于句首。
on my desk i found an interesting book about mexico.
在我的桌上我发现一本很有趣的关于墨西哥析书。
a few minutes later she collapsed.
几分钟以后她就垮下了。
suddenly the rain stopped.
突然间雨停了。
for weeks the rescuing party searched for the missing girl.
一连几个星期救援队都在搜寻丢失的女孩。
under his arm be was carrying a great album.
他的腋下挟着一本巨大的像册。
这一类倒装句极为常见。有时是为了加强语气,有时仅仅是为了上下文的衔接通顺。些类句子只是将状语
提前,其余句子扔按陈述句的正常语序排列。
in a corner of the room sat a small boy.
房间的角落时坐着一个小男孩。
on the couch was lying a beautiful young woman.
沙发上躺着一个漂亮的女子。
down crashed the gigantic plane.
大飞机一下子栽了下来。
down the street marched the hand.
乐队沿着街道走远了。
here comes the bus.
车来了。
这一类倒装句通常状语简短,谓语动词是come, sit, lie, stand, walk 等不及物动词。其语序通常是动词在前,主语在后,不借用助动词do.
not until then did i understand what she meant.
直到那时我才明白她的意思。
seldom have i seen this road flooded.
我很少见过这条路被水淹没。
not only did we lose our money, but our lives were also in danger.
我们不仅丢了钱,还险些丢了命。
hardly had she entered the room when the telephone started to ring.
她还没进屋电话铃就响起来了。
never before had i seen so many beautiful girls.
我从未见过这么多漂亮的女孩子。
no sooner had he arrived than the trouble started.
他刚一到麻烦就来了。
这一类倒装句以否定副词开句,如never, not only, hardly, no sooner, seldom, at no time, on no account, in no way等。句子的倒装要借用助动词do/does/did或have/has/had来构成。
文档为doc格式