Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Best way to tell if two files are the same?

Tags:

c#

file

If I transfer a file over the internet from computer A to computer B using C# using one of the many ways to do file transfers with .NET, What is the best way to tell if the file on computer A and computer B is the same?

I am thinking that MD5 hashes would be a good way to tell. It seems like that is a widely accepted way to tell. However, I am just double checking to see if there is not a better way out there hidden in the .NET framework.

Thank you Tony

like image 200
Tony Avatar asked Jan 22 '26 13:01

Tony


1 Answers

MD5 is the way to go.

like image 80
Geo Avatar answered Jan 24 '26 13:01

Geo



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!