网站首页  英汉词典

请输入您要查询的英文单词:

 

单词 XOR encryption
释义

XOR encryption

中文百科

异或密码 XOR cipher

(重定向自XOR encryption)

简单异或密码英语:simple XOR cipher)是密码学中一种简单的加密算法,它按照如下原则进行运算:

其中\oplus为逻辑异或(XOR)运算的符号。按这种逻辑,文本串行的每个字符可以通过与给定的密钥进行按位异或运算来加密。如果要解密,只需要将加密后的结果与密钥再次进行按位异或运算即可。

例如,字符串“Wiki”(8位ASCII:01010111 01101001 01101011 01101001) 可以按如下的方式用密钥11110011进行加密:

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

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

英语百科

XOR cipher 异或密码

(重定向自XOR encryption)

In cryptography, the simple XOR cipher is a type of additive cipher, an encryption algorithm that operates according to the principles:

where \oplus denotes the exclusive disjunction (XOR) operation. This operation is sometimes called modulus 2 addition (or subtraction, which is identical). With this logic, a string of text can be encrypted by applying the bitwise XOR operator to every character using a given key. To decrypt the output, merely reapplying the XOR function with the key will remove the cipher.

随便看

 

英汉网英语在线翻译词典收录了3779314条英语词汇在线翻译词条,基本涵盖了全部常用英语词汇的中英文双语翻译及用法,是英语学习的有利工具。

 

Copyright © 2004-2024 encnc.com All Rights Reserved
更新时间:2025/6/17 0:37:24