2022年密码编码学与网络安全第四版第二章答案翻译

上传人:汽*** 文档编号:567421018 上传时间:2024-07-20 格式:PDF 页数:9 大小:94.15KB
返回 下载 相关 举报
2022年密码编码学与网络安全第四版第二章答案翻译_第1页
第1页 / 共9页
2022年密码编码学与网络安全第四版第二章答案翻译_第2页
第2页 / 共9页
2022年密码编码学与网络安全第四版第二章答案翻译_第3页
第3页 / 共9页
2022年密码编码学与网络安全第四版第二章答案翻译_第4页
第4页 / 共9页
2022年密码编码学与网络安全第四版第二章答案翻译_第5页
第5页 / 共9页
点击查看更多>>
资源描述

《2022年密码编码学与网络安全第四版第二章答案翻译》由会员分享,可在线阅读,更多相关《2022年密码编码学与网络安全第四版第二章答案翻译(9页珍藏版)》请在金锄头文库上搜索。

1、第二章2.1 什么是对称密码的本质成分?Plaintext, encryption algorithm, secret key, ciphertext, decryption algorithm. 明文加密算法密钥密文解密算法2.2 密码算法中两个基本函数式什么?Permutation and substitution. 代换和置换P20 2.3 用密码进行通信的两个人需要多少密钥?对称密码只需要一把,非对称密码要两把P20 2.4 分组密码和流密码的区别是什么?A stream cipher is one that encrypts a digital data stream one bit

2、 or one byte at a time. A block cipher is one in which a block of plaintext is treated as a whole and used to produce a ciphertext block of equal length. 分组密码每次输入的一组元素,相应地输出一组元素。流密码则是连续地处理输入元素,每次输出一个元素。P20 2.5 攻击密码的两种一般方法是什么?Cryptanalysis and brute force. 密码分析和暴力破解2.6 列出并简要定力基于攻击者所知道信息的密码分析攻击类型。Ciph

3、ertext only . One possible attack under these circumstances is the brute-force approach of trying all possible keys. If the key space is very large, this becomes impractical. Thus, the opponent must rely on an analysis of the ciphertext itself, generally applying various statistical tests to it. Kno

4、wn plaintext. The analyst may be able to capture one or more plaintext messages as well as their encryptions. With this knowledge, the analyst may be able to deduce the key on the basis of the way in which the known plaintext is transformed. Chosen plaintext. If the analyst is able to choose the mes

5、sages to encrypt, the analyst may deliberately pick patterns that can be expected to reveal the structure of the key.精选学习资料 - - - - - - - - - 名师归纳总结 - - - - - - -第 1 页,共 9 页惟密文已知明文选择明文2.7 无条件安全密码和计算上安全密码的区别是什么?An encryption scheme is unconditionally secure if the ciphertext generated by the scheme d

6、oes not contain enough information to determine uniquely the corresponding plaintext, no matter how much ciphertext is available. An encryption scheme is said to be computationally secure if: (1) the cost of breaking the cipher exceeds the value of the encrypted information, and (2) the time require

7、d to break the cipher exceeds the useful lifetime of the information. 书本 P21 2.8 简要定义Caesar密码The Caesar cipher involves replacing each letter of the alphabet with the letter standing k places further down the alphabet, for k in the range 1 through 25. 书本 P22 2.9 简要定义单表代换密码A monoalphabetic substituti

8、on cipher maps a plaintext alphabet to a ciphertext alphabet, so that each letter of the plaintext alphabet maps to a single unique letter of the ciphertext alphabet. 书本 P23 2.10 简要定义Playfair 密码The Playfair algorithm is based on the use of a 5 5 matrix of letters constructed using a keyword. Plainte

9、xt is encrypted two letters at a time using this matrix. 书本 P26 2.11 单表代换密码和夺标代换密码的区别是什么?A polyalphabetic substitution cipher uses a separate monoalphabetic substitution cipher for each successive letter of plaintext, depending on a key. 书本 P30 精选学习资料 - - - - - - - - - 名师归纳总结 - - - - - - -第 2 页,共 9

10、页2.12 一次一密的两个问题是什么?1. There is the practical problem of making large quantities of random keys. Any heavily used system might require millions of random characters on a regular basis. Supplying truly random characters in this volume is a significant task. 2. Even more daunting is the problem of key

11、distribution and protection. For every message to be sent, a key of equal length is needed by both sender and receiver. Thus, a mammoth key distribution problem exists. 书本 P33 2.13 什么是置换密码?A transposition cipher involves a permutation of the plaintext letters. 书本 P33 2.14 什么是隐写术?Steganography involv

12、es concealing the existence of a message. 书本 P36 2.7.3 习题2.1 a.对 b 的取值是否有限制?解释原因。没有限制, b 只会使得明文加密后的密文字母统一左移或右移,因此如果是单射的,b改变后依然是单射。注:答案解答得很坑爹,答了等于没答。现解答如下: ,mod260mod26E k pE k qapbaqbapaqbb若要,则不成立,则不成立。这时已经消掉了,因此显然不会影响算法的映射特性。b.判定 a 不能取哪些值。2, 4, 6, 8, 10, 12, 13, 14, 16, 18, 20, 22, 24. 当 a 大于 25 时,

13、 a 也不能是使得a mod 26 为这些数的值。c.分析 a可以取那些值,不可以取那些值。并给出理由。a 与 26 必须没有大于1 的公因子。也就是说a 与 26 互素,或者最大公约数为1.为了说精选学习资料 - - - - - - - - - 名师归纳总结 - - - - - - -第 3 页,共 9 页明为什么是这样,先注意到要使E(a, p) = E( a, q) (0 p q 1.则当 q = p + m/k p 时, p q= -m/k,显然 26 能整除 a(p q),从而 E(a, p) = E( a, q). .0mod 2626.26,0262626213213aa pqa

14、 pqpqpqpqpqpqa注:由知不成立,则不能整除由文中暗示 0,这个其实开头我也不知道,后来觉得应该是这样。因为 与 不相等,所以,因此不可能是的整数倍,但是有可能是 或的整数倍。因此不能是 或的整数倍。2.2 有多少种仿射Caesar密码?a 有 12 种可能的值(2, 4, 6, 8, 10, 12, 13, 14, 16, 18, 20, 22, 24 ) ,b 有 26 种可能的值(0到 25) ,因此总共有12 26 = 312 种仿射 Caesar密码。2.3 用仿射 Caesar密码加密得到一份密文。频率最高的字母为B,次高的字母为U,请破译该密码。假设明文中频率最高的字母

15、为e,次高的字母为t。注意 e=4(e排在第 4,a 排在第 0,没有第 26) ,B=1,t=19,U=20;因此可以得到:1 = (4a + b) mod 26 20 = (19a + b) mod 26 下式减上式可得19 = 15a mod 26,通过反复的错误实验,可得a = 3 然后代入第一条式子可得1 = (12 + b) mod 26,然后得出b = 15 精选学习资料 - - - - - - - - - 名师归纳总结 - - - - - - -第 4 页,共 9 页gcd 15,2611526126151115114112434314112411511112151111526

16、1526152152615115stst注意:答案说经过反复错误试验,这个解答很坑爹,实际上是可以精确算出的。因为,因此由裴蜀定理,必存在整数和 ,使得。由欧几里得算法因此,因此因此最后得出111726411571mod 261197 mod 26,1971333mod 26,3.1515mod2615 3mod 2639mod 26apCb apC所以所以从而就是这样的出来的于是,即,显然2.4 A good glass in the Bishops hostel in the Devils seattwenty-one degrees and thirteen minutesnorthea

17、st and by north main branch seventh limb east side shoot from the left eye of the deaths head a bee line from the tree through the shot fifty feet out. (from The Gold Bug, by Edgar Allan Poe) 2.5 a.第一个字母t 对应 A,第二个字母h 对应 B,e 对应 C,s 对应 D,依此类推。随后在句子中重复出现的字母则忽略。结果是密文 : SIDKHKDM AF HCRKIABIE SHIMC KD LFE

18、AILA 明文 : basilisk to leviathan blake is contact b.这是一个单表密码,因此容易被破译c.最后一句可能不会包含字母表中的所有字母。如果用第一句的话,随后的句子可以继续填补第一句字母的不全。2.6 The cipher refers to the words in the page of a book. The first entry, 534, refers to page 534. The second entry, C2, refers to column two. The remaining numbers are words in tha

19、t column. The names DOUGLAS and BIRLSTONE are simply words that do not appear on that page. Elementary! (from The Valley of Fear, by Sir Arthur Conan Doyle) 2.6 密文其实指的是一本书中某一页的单词。第一项,534 是指第 534 页。第二项, C2是指第二列。剩余的数字是这一列中的单词。名字DOUGLAS和 BIRLSTONE 显然是那一页没有出精选学习资料 - - - - - - - - - 名师归纳总结 - - - - - - -第

20、 5 页,共 9 页现的单词。太基本了!(from The Valley of Fear, by Sir Arthur Conan Doyle) 2.7 a. 加密方法是, 先把字母从左到右,从上到下填入矩阵中。然后按第一个密钥的编号,先把编号为1 的那一列作为下一个矩阵的第一行,随后的编号按上面的方法填入对应的行。最后按第二个密钥的编号一列一列地写出来。2 8 10 7 9 6 3 1 4 5 C R Y P T O G A H I B E A T T H E T H I R D P I L L A R F R O M T H E L E F T O U T S I D E T H E L

21、Y C E U M T H E A T R E T O N I G H T A T S E V E N I F Y O U A R E D I S T R U S T F U L B R I N G T W O F R I E N D S 4 2 8 10 5 6 3 7 1 9 N E T W O R K S C U T R F H E H F T I N B R O U Y R T U S T E A E T H G I S R E H F T E A T Y R N D I R O L T A O U G S H L L E T I N I B I T I H I U O V E U F

22、 E D M T C E S A T W T L E D M N E D L R A P T S E T E R F O ISRNG BUTLF RRAFR LIDLP FTIYO NVSEE TBEHI HTETA EYHAT TUCME HRGTA IOENT TUSRU IEADR FOETO LHMET NTEDS IFWRO HUTEL EITDS b.解密当然是把矩阵倒转顺序来用,先用第二个矩阵。首先,根据第二个密钥的编码,把密文按编码的顺序填入列中。然后,再用第一个密钥,从左到右,从上到下地读第二个矩阵,按照第一个密钥的编码顺序,把第一行的字母填入编码为1 的列中, 随后的行依此

23、类推。最后,第一个矩阵从左到右从上到下读就是明文了。c.虽然这是一个弱的加密方法,但是当加密的内容是实时信息,或者企图窃听者没有快速得到好的密码分析方法(例如,战略使用),也是可以使用的。加上它除了纸和笔外不需要跟多的工具,而且非常容易记住。精选学习资料 - - - - - - - - - 名师归纳总结 - - - - - - -第 6 页,共 9 页2.8 SPUTNIK 2.9 PT BOAT ONE OWE NINE LOST IN ACTION IN BLACKETT STRAIT TWO MILES SW MERESU COVE X CREW OF TWELVE X REQUEST

24、ANY INFORMATION 2.10 a. L A R G E S T B C D F H I/J K M N O P Q U V W X Y Z b. O C U R E N A B D F G H I/J K L M P Q S T V W X Y Z 2.11 a. UZTBDLGZPNNWLGTGTUEROVLDBDUHFPERHWQSRZ b. UZTBDLGZPNNWLGTGTUEROVLDBDUHFPERHWQSRZ c.轮换对称的行或者列会导致等价的结果。在这一例子中,通过一步的列轮换和三步的行轮换,此问题的a 部分的矩阵可以从问题2.10a 的矩阵得到。2.12 a. 2

25、5! 284b.对于给定的任意5x5 配置的矩阵, 对于每一行, 都有四个轮换变换(循环右移一格、两格、三格、四格)是等价的,总共就有五个是一样的。这五行之中,各自每一行也有这样的等价关系。所以每个配置就代表着25 个等价的配置。因此,总共的密钥数量应为25!/25 = 24! 2.13 一个混合的Ceasar密码。移位的数量由密钥决定,密钥决定矩阵中字母的代换。2.14 a. Difficulties are things that show what men are. b. Irrationally held truths may be more harmful than reasoned

26、 errors. 2.15 a. 我们需要偶数个字母,因此在最后添加一个” q” 。然后按照字母表的位置变换字母。精选学习资料 - - - - - - - - - 名师归纳总结 - - - - - - -第 7 页,共 9 页M e e t m e a t t h e u s u a l 13 5 5 20 13 5 1 20 20 8 5 21 19 21 1 12 P l a c e a t t e n r a t h e r 16 12 1 3 5 1 20 20 5 14 18 1 20 8 5 18 T h a n e i g h t o c l o c k q 20 8 1 14

27、5 9 7 8 20 15 3 12 15 3 11 17 必须一次对两个字母进行计算,第一对是C1C29457135mod 26137100mod 26722密文的头两个字符是字母表的第7 和 22 个位置,对应GV 完整的密文:GVUIGVKODZYPUHEKJHUZWFZFWSJSDZMUDZMYCJQMFWWUQRKR b. 我们首先求矩阵的逆。注意到加密矩阵的模是(9 7) (4 5) = 43.使用书中求逆矩阵的公式:945711437459mod26237459mod26161921159mod265121525这里我们利用了等式(43) 1= 23 mod 26。一旦逆矩阵确定

28、,解密就能够顺利执行了。来源: LEWA00. 2.16考虑矩阵 K,由元素 kij表示,矩阵 Kj是矩阵 K 的第 j 列。and 通过选择下列 n 组明文就能暴露出K 矩阵的每一列 : (B, A, A, , A, A) K1(A, B, A, , A, A) K2(A, A, A, , A, B) Kn注意, A 代表 0,B 代表 1 2.17 2.17 a.7 134 精选学习资料 - - - - - - - - - 名师归纳总结 - - - - - - -第 8 页,共 9 页b.7 134 c.134 d.10 134 e.24 132 f.24 (132 1) 13 g. 37

29、648 h.23530 i.157248 2.18 密钥 : legleglegle明文 : explanation 密文 : PBVWETLXOZR 2.19 a. s e n d m o r e m o n e y 18 4 13 3 12 14 17 4 12 14 13 4 24 9 0 1 7 23 15 21 14 11 11 2 8 9 1 4 14 10 9 3 12 18 23 25 15 12 7 B E C K J D M S X Z P M H b. c a s h n o t n e e d e d 2 0 18 7 13 14 19 13 4 4 3 4 3 25

30、4 22 3 22 15 19 5 19 21 12 8 4 1 4 14 10 9 3 12 18 23 25 15 12 7 B E C K J D M S X Z P M H 2.20 your package ready Friday 21st room three Please destroy this immediately. 2.21 a.把信息填入8 列的矩阵总,每个整数告诉你应选择各行的第几个字母。结果: He sitteth between the cherubims. The isles may be glad thereof. As the rivers in the south. b.挺安全的,每一行是1/8 的概率。因此如果密文长度是8 的倍数,那么明文也可能是8 的倍数。c.不是很安全,Lord Peter 就破解了它。 (出自The Nine Tailors) 精选学习资料 - - - - - - - - - 名师归纳总结 - - - - - - -第 9 页,共 9 页

展开阅读全文
相关资源
正为您匹配相似的精品文档
相关搜索

最新文档


当前位置:首页 > 建筑/环境 > 施工组织

电脑版 |金锄头文库版权所有
经营许可证:蜀ICP备13022795号 | 川公网安备 51140202000112号