As we are all aware that HASHing is user to verify integrity in cryptography. I have a query about hashing.
Suppose a man in the middle attacker manipulates the data and creates new HASH (by running algorithm on manipulated data) using the same hashing algorithm (becausehashing algorithms are universal algorithms) and send it along with the manipulated data to the receiver.when receiver runs the algorithm on manipulated data, it gets the same HASH ( HASH created by the attacker) and though integrity will be verified. But actual data has been manipulated/modified and integrity is compromised.
Is it possible? and if it is possible how can we eliminate this problem (solution for the same)?