Finding Duplicate Files in .NET

Finding if two files are exactly same is very easy in .NET. We use hash functions to check if two files are exactly same.
Hash functions are algorithms that compute a hash value or checksum or digest. Hash functions always return distinct computed values for different data/parameters and same computed value every time for same data/parameter. If we compute hash value for two different files in a computer, the hash function will return exactly same hash value if the files are exact copies of each other or else, the hash values will be different for each file.
.NET provides different hashing algorithms some are keyed while others are non-keyed hash algorithms.
References from MSDN-
Hash Algorithms in .NET-
Non-keyed Hash Algorithms in .NET-
Keyed Hash Algorithms in .NET-
Share This!

Leave a Reply

Your email address will not be published. Required fields are marked *