doujia1163 2014-12-03 16:25
浏览 81
已采纳

AES:在给定解密文本和加密文本的情况下搜索密钥

Although this may sound impractical, please hear me out...

Let's say I have two strings:
"test"
"apis"

I want to use AES 256-bit Encryption to convert the first string to the second string.

In AES (or any similar) Encryption, is it possible to search for a key that would work for such a situation, where the decrypted and encrypted text are known but not the passphrase?

If so, could someone suggest how I could implement it in PHP?

  • 写回答

1条回答 默认 最新

  • doter1995 2014-12-03 16:40
    关注

    This is how bruteforcing encryption works, well the other way around, but still. You try all possible combinations and see if the decrypted text makes sense.

    Unless the encryption algorithm is completely broken, you can't do what you ask. AES-256 is not broken.

    Imagine if this was possible, then you could find the encryption key in a https dialog for instance as a response always starts the same way. I.e. "200 Ok"

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

悬赏问题

  • ¥15 如何在scanpy上做差异基因和通路富集?
  • ¥20 关于#硬件工程#的问题,请各位专家解答!
  • ¥15 关于#matlab#的问题:期望的系统闭环传递函数为G(s)=wn^2/s^2+2¢wn+wn^2阻尼系数¢=0.707,使系统具有较小的超调量
  • ¥15 FLUENT如何实现在堆积颗粒的上表面加载高斯热源
  • ¥30 截图中的mathematics程序转换成matlab
  • ¥15 动力学代码报错,维度不匹配
  • ¥15 Power query添加列问题
  • ¥50 Kubernetes&Fission&Eleasticsearch
  • ¥15 報錯:Person is not mapped,如何解決?
  • ¥15 c++头文件不能识别CDialog