• 欢迎访问速搜资源吧,如果在网站上找不到你需要的资源,可以在留言板上留言,管理员会尽量满足你!

【速搜问答】异或密码是什么

问答 admin 2周前 (04-19) 20次浏览 已收录 0个评论

汉英对照:
Chinese-English Translation:

异或密码(simple XOR cipher)是密码学中一种简单的加密算法,是指对信息进行异或操作来达到加密和解密目的。按这种逻辑,文本串行的每个字符可以通过与给定的密钥进行按位异或运算来加密。

XOR (simple XOR cipher) is a simple encryption algorithm in cryptography, which refers to the XOR operation of information to achieve the purpose of encryption and decryption. According to this logic, each character of the serial text can be encrypted by bitwise XOR operation with the given key.

异或是对两个运算元的一种逻辑分析类型,符号为 XOR 或 EOR。与一般的逻辑或 OR 不同,当两两数值相同为否,而数值不同时为真。异或密码(simple XOR cipher)是密码学中一种简单的加密算法,是指对信息进行异或操作来达到加密和解密目的。按这种逻辑,文本串行的每个字符可以通过与给定的密钥进行按位异或运算来加密。如果要解密,只需要将加密后的结果与密钥再次进行按位异或运算即可。

XOR is a type of logical analysis of two operands. The symbol is XOR or EOR. Different from the general logic or or, when two values are the same, it is no, but when the values are different, it is true. XOR (simple XOR cipher) is a simple encryption algorithm in cryptography, which refers to the XOR operation of information to achieve the purpose of encryption and decryption. According to this logic, each character of the serial text can be encrypted by bitwise XOR operation with the given key. If you want to decrypt, you only need to do the XOR operation between the encrypted result and the key again.

简介

brief introduction

异或运算(XOR)是一种计算机程序设计语言中很重要基于二进制的位运算,对提高程序可读性和运行效率具有重要实际价值。异或运算具有交换律、结合律、自反律、配对等常见性质,以广泛应用于奇偶性判别、纠错检验、网络编码、信息加密、图像处理等应用中。

XOR (XOR) is a very important bit operation in computer programming language. It is of great practical value to improve the readability and efficiency of the program. XOR operation has the common properties of exchange law, association law, reflexive law, pairing and so on. It is widely used in parity discrimination, error correction test, network coding, information encryption, image processing and other applications.

异或密码是一种通过异或运算进行加密的算法,它按照如下原则进行运算。

XOR cipher is a kind of encryption algorithm through XOR operation, which operates according to the following principles.

此种加密方法类似对称加密,故解密的方式如下:

This encryption method is similar to symmetric encryption, so the decryption method is as follows:

异或运算符常作为更为复杂的加密算法的组成部分。对于其本身来说,如果使用不断重复的密钥,利用频率分析就可以破解这种简单的异或密码。如果消息的内容被猜出或知道,密钥就会泄露。异或密码值得使用的原因主要是其易于实现,而且计算成本小。简单重复异或加密有时用于不需要特别安全的情况下来隐藏信息。

XOR operators are often used as part of more complex encryption algorithms. For itself, if we use the repeated key, we can use frequency analysis to crack this simple XOR password. If the content of the message is guessed or known, the key will be disclosed. The reason why XOR cipher is worth using is that it is easy to implement and low cost. Simple XOR encryption is sometimes used to hide information without special security.

如果密钥是随机的(不重复),而且与消息长度相同,异或密码就会更为安全。当密钥流由伪随机数发生器生成时,结果就是流密码。若密钥是真正随机的,结果就是一次性密码本,这种密码在理论上是不可破解的。这些密码的任何部分中,密钥运算符在已知明文攻击下都是脆弱的,这是因为明文

If the key is random (not duplicate) and the same length as the message, the XOR password is more secure. When the key stream is generated by pseudo-random number generator, the result is stream cipher. If the key is truly random, the result is a one-time password, which is theoretically unbreakable. In any part of these ciphers, key operators are vulnerable to known plaintext attacks, because plaintext is the key

频率分析

frequency analysis

频率分析在数学、物理学和信号处理中是一种分解函数、波形、或者信号的频率组成,以获取频谱的方法。英语文本中典型的字母分布情况。较弱的密码会显示出这个分布,从而被密码专家所破译。字词分布情况,字型越大,代表该字词出现的机率就越大。在密码学中,频率分析是指研究字母或者字母组合在文本中出现的频率。应用频率分析可以破解古典密码。

In mathematics, physics and signal processing, frequency analysis is a method of decomposing function, waveform or frequency composition of signal to obtain spectrum. The distribution of typical letters in English texts. Weaker ciphers show this distribution, which can be deciphered by cryptographers. The distribution of words, the larger the font, the greater the probability of the word. In cryptography, frequency analysis refers to the study of the frequency of letters or letter combinations in text. Frequency analysis can be used to crack classical codes.

频率分析基于如下原理:在任何一种书面语言中,不同的字母或字母组合出现的频率各不相同。而且,对于以这种语言书写的任意一段文本,都具有大致相同的特征字母分布。比如,在英语中,字母 E 出现的频率很高,而 X 则出现得较少。类似地,ST、NG、TH,以及 QU 等双字母组合出现的频率非常高,NZ、QJ 组合则极少。英语中出现频率最高的 12 个字母可以简记为“ETAOIN SHRDLU”。

Frequency analysis is based on the following principle: in any written language, the frequency of different letters or letter combinations is different. Moreover, any text written in this language has roughly the same distribution of characteristic letters. For example, in English, the letter E appears more frequently than the letter X. Similarly, the frequency of St, ng, th and Qu is very high, while NZ and QJ are rare. The 12 most frequent letters in English can be abbreviated as “etaoin shrdlu”.


速搜资源网 , 版权所有丨如未注明 , 均为原创丨转载请注明原文链接:【速搜问答】异或密码是什么
喜欢 (0)
[361009623@qq.com]
分享 (0)
发表我的评论
取消评论
表情 贴图 加粗 删除线 居中 斜体 签到

Hi,您需要填写昵称和邮箱!

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址