简介

In short, the length-extension attack on one-way hash construction is that you can, given h(m) and len(m), you are able to compute h(m||pad(m)||m’) for any m’ (|| stands for concatenation), even if you don’t know the entire message m. This attack works on all Merkle-Damgård hash such as MD0-MD5 and SHA0-SHA2. This is also called “message extension” or “padding” attack”. (感觉问题主要来源于分组串联)

哈希长度扩展攻击

哈希长度扩展攻击

具体流程

解决方法

  1. 用HMAC
  2. Hash(message || password)
  3. Hash(password || Hash(message))

更多

相关文章:

  • 2021-12-07
  • 2021-08-08
  • 2021-05-19
  • 2022-12-23
  • 2021-12-18
  • 2021-08-27
  • 2022-01-26
  • 2021-12-08
猜你喜欢
  • 2021-10-18
  • 2021-06-06
  • 2021-07-05
  • 2022-12-23
  • 2021-12-20
  • 2022-12-23
相关资源
相似解决方案