Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

图解密码技术 —— 第三章-对称密码 #27

Open
isshe opened this issue Dec 25, 2021 · 0 comments
Open

图解密码技术 —— 第三章-对称密码 #27

isshe opened this issue Dec 25, 2021 · 0 comments

Comments

@isshe
Copy link
Owner

isshe commented Dec 25, 2021

https://isshe.site/p/%E5%9B%BE%E8%A7%A3%E5%AF%86%E7%A0%81%E6%8A%80%E6%9C%AF-%E7%AC%AC%E4%B8%89%E7%AB%A0-%E5%AF%B9%E7%A7%B0%E5%AF%86%E7%A0%81/

对称密码 用相同的秘钥进行加密和解密。
比特序列 编码:将现实中的东西映射为比特序列。 ASCII UTF-8 XOR——异或 XOR: exclusive or, 异或。
异或类似于加密解密过程: 消息A异或秘钥B = X X 异或 B = A 一次性密码本 原理:将明文与一串随机的比特序列进行XOR运算。 无法破解的原因:密文 XOR 破解秘钥得到的有意义明文,可能有多个,无法确定具体是哪个明文。
DES DES: Data Encryption Standard。
美国联邦信息处理标准中采用的一种对称密码。 一种将64bit明文加密成64bit密文的对称密码算法。 秘钥长度是56bit。(实际64bit,但由于每隔7bit设置一个错误检查bit,因此是56bit) 如果明文长于64bit,则需要迭代加密。 差分分析 思路:改变一部分明文并分析密文如何随之改变。
线性分析 思路:将明文和密文的一些对应比特进行XOR并计算其结果为0的概率。
三重DES 3DES(TDEA):将DES重复3次。 分组长度为:64 * 3 = 192
AES 分组长度为:128

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant