信息安全习题答案2-4讲.docVIP

  • 21
  • 0
  • 约9.15千字
  • 约 21页
  • 2017-06-09 发布于湖北
  • 举报
第2章习题及答案 1.设a-z的编码为1-26,空格编码为27,采用密码算法,取,设明文为“cryptography is an applied science”,计算相应的密文。 解:明文: cryptography is an applied science 加密: c: 对应得到字母n; r: 对应得到字母c; y:对应得到字母x; 其余字母的解密运算类似,略. 通过计算相应的密文为:ncxyivzchyaxbdfbhsbhyymdtqbfndtsnt 2.用Vigenere算法加密明文“The meeting will be held at afternoon”,设密钥为:hello。 解:起始密钥串是:hello,根据编码规则,密钥串的数字表 为(7,4,11,11,14),明文串The meeting will be held at afternoon进行维吉尼亚加密和解密运算。加密运算如下表: 明文 Theme eting willb eheld ataft ernoo n 明文编码 19,7,4,12,4 4,19,8,13,6 22,8,11,11,1 4,7,4,11,3 7

文档评论(0)

1亿VIP精品文档

相关文档