日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問 生活随笔!

生活随笔

當前位置: 首頁 > 编程资源 > 编程问答 >内容正文

编程问答

维吉尼亚密码和一次性密码本_密码学中的一次性密码

發布時間:2023/12/1 编程问答 30 豆豆
生活随笔 收集整理的這篇文章主要介紹了 维吉尼亚密码和一次性密码本_密码学中的一次性密码 小編覺得挺不錯的,現在分享給大家,幫大家做個參考.

維吉尼亞密碼和一次性密碼本

The One-time Pad cipher is almost similar to the Vernam cipher, as, like the vernam cipher, this cipher technique also encrypts the plain text by working on the binary level of the text. The only difference between the two is that the length of the key in the Vernam Cipher must be less than or equal to the length of the plain text, whereas, in One-time pad Cipher, the length of the key must be equal to that of the Plain text. It cannot be less than that.

一次性Pad密碼幾乎與Vernam密碼相似,因為像vernam密碼一樣 ,該密碼技術還通過在文本的二進制級別上進行工作來對純文本進行加密。 兩者之間的唯一區別是,Vernam密碼中的密鑰長度必須小于或等于純文本的長度,而在一次性填充密碼中 ,密鑰的長度必須等于純文本的長度。純文本。 它不能少于那個。

Now, talking about its characteristics and details, One-time pad cipher is a cipher in which we consider both the plain text and the key string in its binary form.

現在,在談論其特征和細節時, 一次性填充密碼是一種密碼,在該密碼中,我們同時考慮了純文本和二進制形式的密鑰字符串。

The following key points can be drawn for the One Time Pad cipher,

可以為One Time Pad密碼得出以下要點,

  • The key chosen here is a string whose length must be equal to the length of the plain text.

    此處選擇的鍵是一個字符串,其長度必須等于純文本的長度。

  • The key can be either in string form or directly in binary form also.

    密鑰可以是字符串形式,也可以是直接二進制形式。

  • It is a type of symmetric-key cryptography.

    它是一種對稱密鑰密碼術 。

  • It is a type of poly-alphabetic cipher, being a part of the substitution cipher.

    它是多字母密碼的一種,是替代密碼的一部分。

加密過程 (Encryption Process)

  • Here, firstly, we convert both our plain text and the key string into its binary form.

    在這里,首先,我們將純文本和密鑰字符串都轉換為二進制格式。

  • Perform XOR operation between the elements of the plain text with the respective elements of the ley string which hold the same positions.

    在純文本的元素與ley字符串的各個元素保持相同位置之間執行XOR操作。

  • Therefore, the encryption on the plain text to convert it into ciphertext is performed as follows,

    因此,對純文本進行加密以將其轉換為密文的過程如下:

    E (Pi , Ki) = Pi (XOR) Ki

解密過程 (Decryption Process)

The process of decrypting the ciphertext to convert it back into plain text is performed in the same way as the encryption process. Therefore, the formula for decryption of the text under Vernam cipher is as follows,

解密密文以將其轉換回純文本的過程以與加密過程相同的方式執行。 因此,在Vernam密碼下解密文本的公式如下:

D (Ci , Ki) = Ci (XOR) Ki

示例問題 (Example Problem)

Given Plain text: IF Key: 1101011 0101111

Convert the given plain text into cipher text...

將給定的純文本轉換為密文...

Solution:

解:

  • Convert the given plain text into its binary form,

    將給定的純文本轉換為其二進制形式,

    1001001 1000110
  • Check whether the length of the key if equal to that of the plain text,

    檢查密鑰的長度是否等于純文本的長度,

    1 0 0 1 0 0 1 1 0 0 0 1 1 01 1 0 1 0 1 1 0 1 0 1 1 1 1
  • Tape the elements of the plain text with the respective elements of the ley string which hold the same positions.

    將純文本的元素與ley字符串的各個元素保持相同的位置。

    Example for position 1, we encrypt as follows,

    位置1的示例,我們加密如下,

    E( 1, 1 ) = 1 XOR 1= 0
  • Similarly, after performing the encryption for the whole plain text, we get the following results,

    同樣,在對整個純文本進行加密之后,我們得到以下結果,

    1 0 0 1 0 0 1 1 0 0 0 1 1 01 1 0 1 0 1 1 0 1 0 1 1 1 1 ------------------------------0 1 0 0 0 1 0 1 1 0 1 0 0 1

Note: You can cross-check your answer by applying the decryption process over the ciphertext, and if it comes back to be the same as the plain text, then it means that our answer is correct.

注意:您可以通過對密文應用解密過程來交叉檢查您的答案,如果它與純文本相同,則表明我們的答案是正確的。

翻譯自: https://www.includehelp.com/cryptography/one-time-pad-cipher.aspx

維吉尼亞密碼和一次性密碼本

總結

以上是生活随笔為你收集整理的维吉尼亚密码和一次性密码本_密码学中的一次性密码的全部內容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網站內容還不錯,歡迎將生活随笔推薦給好友。

主站蜘蛛池模板: 97se亚洲 | 国产激情视频一区二区 | 一级黄色裸体片 | 天天插夜夜 | 欧美视频四区 | 婷婷6月天| 国产嘿咻| 真实人妻互换毛片视频 | 天堂成人av | 国产精品久久久久久免费 | 国产成人精品av在线观 | 中国黄色一级视频 | 日日干夜夜干 | 一区在线不卡 | 久久久久人妻一区精品色 | 可乐操亚洲 | 99re6在线精品视频免费播放 | 日韩中文在线视频 | 亚洲成年人在线观看 | 香蕉在线网站 | 国产黄大片在线观看画质优化 | 一区二区国产欧美 | 国产一级黄 | 激情伦成人综合小说 | 色七七桃花影院 | 男女互操视频 | 性欧美又大又长又硬 | 中文字幕人乱码中文字 | 久草色视频| 污污小说在线观看 | 自拍偷拍日韩精品 | 日本一区二区三区精品视频 | 污视频在线观看免费 | 17c在线视频| 国产 日韩 欧美在线 | www.jizzjizz.com| 精品少妇久久久久久888优播 | 精品字幕 | 黄色片在线视频 | 成人国产欧美 | 欧美日韩成人在线观看 | 日韩欧美黄色 | 日日操夜夜爽 | 成人毛片一级 | 天天爽 | 91福利视频免费观看 | 女人张开腿让男人插 | eeuss国产一区二区三区黑人 | 99久久毛片| 亚洲尹人 | 欧美高清在线视频 | 婷婷激情五月 | 国产美女永久无遮挡 | 无码人妻丰满熟妇区bbbbxxxx | 看毛片网 | 欧美人与动物xxxx | 亚洲欧洲自拍偷拍 | 用舌头去添高潮无码视频 | 久久亚洲一区二区三区四区 | 天天夜夜人人 | 狠狠狠 | eeuss鲁片一区二区三区在线观看 | 久久国产一区 | 国产情侣第一页 | 日韩国产一区二区三区 | 精品小视频| 久久香蕉热| 黄色资源在线观看 | 国产精品视频入口 | 91久久色| 97爱爱| 日韩一区二区三区四区 | 男人女人拔萝卜视频 | 人人妻人人澡人人爽人人欧美一区 | 亚洲涩综合 | 欧美综合在线观看 | 精品黑人一区二区三区在线观看 | 国产成人无码av在线播放dvd | 国产精品二区一区二区aⅴ 一卡二卡三卡在线观看 | 国产毛片精品国产一区二区三区 | 六十路息与子猛烈交尾 | 国产精品一区在线观看 | 久久人人艹 | 99re国产在线| 日日日日日日 | 天天操天天插 | 国产精品免费久久久久 | 欧美xxxx日本和非洲 | 亚洲成人一级片 | 少妇精品 | 一区二区啪啪 | 中文字幕永久在线播放 | 欧美成人短视频 | 国产精品久久久免费 | 精品一区二区三区欧美 | 午夜免费体验区 | www.久久99 | 女同hd系列中文字幕 | 欧美黄色免费大片 |