Integrity:

Could anyone please tell me the logic behind file integrity checkers(for example md5.exe).What type of logic can be applied while designing tools like that.Do think that i'm asking the...