是否可以通过原始明文找到解密密文的密钥?
我有明文P和密文C,是否有可能找到K密钥,P被加密。 AES 用于加密。
I have plaintext P and ciphertext C, is it possible to find K key, by which P was encrypted. AES is used to encrypt.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
这称为已知明文攻击。
AES 等现代密码不易受到这些攻击。
This is called a known-plaintext attack.
Modern ciphers such as AES are not vulnerable to these attacks.
取决于你如何定义“可能”。目前,人们普遍认为这是一项不切实际的任务。也就是说,从不建议将明文值与其加密对应项一起存储。特别是如果您对许多组明文/密文对执行此操作,则会增加攻击者可用的信息量并削弱加密。
Depends how you define "Possible". It is generally understood, for the moment, to be an impractical task. That said, storing plaintext values with their encrypted counterparts is never recommended. especially if you do this for many sets of plaintext/ciphertext pairs, you increase the amount of information available to the attacker and weaken the encryption.