File Tampering Detection
This article describes an easy approach to determining whether or not two files are exactly the same.
The text of this article is not in this database — only its details are. The old site it was published on is gone, but the Internet Archive kept a copy: File Tampering Detection


vincent earl misplacidoPosted Jul 17, 2007, 6:17 PM EDT
i like this topic..nice work..im proposing this for our class if its for you..can you give me more details on how does it work?why is it needed to be compared through byte and hash test?thank you
Lee MarcuseditedPosted Jan 6, 2007, 1:51 PM ESTEdited Jan 6, 2007, 1:59 PM EST
Good stuff! I did however find a little error in both tests... In the line: Dim fs1Bytes() As Byte = New Byte(fs1.Length) {} An error is thrown if the fs1.Lengh is not converted to an Integer instead of Long. Dim fs1Bytes() As Byte = New Byte(CInt(fs1.Length)) {} The same goes for the fs2Bytes(). However, I'm using 2003 instead of 2005. It may automatically correct it in the new studio. Nice work!