type
status
date
slug
summary
tags
category
icon
password
看了xctf-final的d77777s这题,了解一下分组密钥的弱密钥和固定点密钥。
在数据加密标准 (DES) 中,弱密钥是指在使用这些密钥进行加密时,会使得明文加密两次过后的密文等于明文。所以该密钥也被称为自反密钥。简单来说就是:
类似的存在半弱密钥定义:用密钥k1加密之后再用不同密钥k2加密一次可以得到明文,形式化表示:
不动点密钥是指的对某个明文加密的结果一直为该明文自身的对应密钥:
可以参考Report on the First DES Fixed Points for Non-Weak Keys: Case-Study of Hacking an IoT Environment | IEEE Journals & Magazine | IEEE Xplore这篇paper找到一些不动点密钥。
验证代码:
欢迎交流~
- Author:ZimaBlue
- URL:https://www.zimablue.life/article/des_weak_keys
- Copyright:All articles in this blog, except for special statements, adopt BY-NC-SA agreement. Please indicate the source!