Length Extension Attacks: How Hash-Based Signatures Can Be Forged

What if it were possible to alter a message without knowing the secret associated with it and it still appeared entirely legitimate?It seems impossible; it’s believed that a secret will prevent you from producing something valid if you don’t know it.However, the way in which something is constructed can allow that to happen.That’s whereLength Extension Attacks come into play. This will be my first advanced-level article, so I hope you enjoy it! :)Introduction When an application wants to make sure that some data hasn’t been modified, it can create a hash of that data. For example, imagine an application receives: username=admin It can calculate a hash for this value and use it to detect
…