Re: encryption and decryption

From 杜玉青, 1 Year ago, written in Plain Text, viewed 324 times. This paste is a reply to Encryption and decryption from dudu - view diff
URL https://pastebin.vip/view/7effb45c
  1. https://blog.csdn.net/weixin_46024145/article/details/114840238    Vigenere算法如何进行加密操作?
  2.  
  3.  
  4.  
  5. https://blog.csdn.net/aaa_hao/article/details/122747243   【密码学】Vigenere 维吉尼亚算法加解密
  6.  
  7. 维吉尼亚密码加密解密教程
  8.  
  9. 假设我们要加密一段字母:   huan  ying  ni 。   秘钥是hello
  10.  
  11. 1,首先制作字母表
  12.  
  13. 写一排字母(大小写通用),下一行写上对应的数字  从0到25
  14.  
  15. 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
  16.  
  17. 0  1  2  3  4  5  6  7  8  9  10  11  12  13  14  15  16  17  18  19  20  21  22  23  24  25
  18.  
  19. 2,将待加密的明文huan ying  ni转换成数字
  20.  
  21. 如  huan ying ni 。 转换之后是
  22. h  u   a  n      y   i   n   g       n   i
  23. 7  20  0  13     24  8   13  6       13  8
  24.  
  25.  
  26. 3,将秘钥hello转换成数字并循环显示,重复位数和明文位数一样,如明文为10位,则密文也是10位
  27.  
  28. h   e   l   l   o   h   e   l   l   o
  29. 7   4   11  11  14  7   4   11  11  14
  30.  
  31. 4, 将明文和秘钥按位数相加,注意空格要留空,标点符号不需要转换,直接写在密文相应位置
  32.  
  33. 14  24  11  24      38  15  17  17       24  22
  34.  
  35. 5,多于25的数字减去25
  36.  
  37. 14   24   11   24    13   15   17   17   24   22
  38.  
  39. 6,参照密码表,转换成字母密文为
  40.  
  41. o   y   l   y     n   p    r    r    y    w
  42.  
  43. 7,因此huan  ying  ni 。的密文是
  44. oylz nprr yw。  
  45.  
  46. 秘钥为hello
  47.  
  48.  
  49. ---------------------------------------------------------
  50.  
  51. 解密过程
  52.  
  53. 1,将密文  oylz nprr yw。  转换成数字
  54. 14    24      11    24     13     15     17        17      25      22
  55.  
  56. 2, 将秘钥hello转换为数字,循环重复,和明文一致
  57. h   e   l   l   o   h   e   l   l   o
  58. 7   4   11  11  14  7   4   11  11  14
  59.  
  60. 3,密文减去秘钥
  61. 7      20     0    13      -1        8      13      6     14     8
  62.  
  63. 4,如果出现负数就加上25
  64.  
  65. 7  20  0  13     24  8   13  6       13  8
  66.  
  67. 5,转换成明文字母
  68. h  u   a  n      y   i   n   g       n   i
  69.  
  70. 6,整理得到
  71. huan ying ni
  72. 秘钥:hello
  73.  

Replies to Re: encryption and decryption rss

Title Name Language When
Re: re: encryption and decryption YW text 1 Year ago.

Reply to "Re: encryption and decryption"

Here you can reply to the paste above

captcha

https://burned.cc - Burn After Reading Website