Let's say we had the following information:
- Secret = "Hello"
- Message = "Attack at Dawn"
- H(s,m) = ABC
Alice is sending a message to Bob but there is a person in the middle, Mallory who intercepts the message.
A ------(s,m)= v ----> Mallory ------ (s',m') = v' ---------> Bob
In order to make sure that the message is untampered v=v'. Here is my question: how can Mallory append to the end of the hashed value yet still have the same hash?
How is it that $H(\text{ABC||"jk don't attack"}) = ABC$? Doesn't the extra char in the string change the entire hashed output?