I am facing a weird problem. md5sum of same text file is different on windows and linux. I expected it to be the same since hash is generated using the content present in the file and does not depend on operating system. is there any specific reason that it is happening like this? Is this same for sha1sum too?
Share
Check the line endings in your text file. Windows uses CR-LF, Linux uses NL. The “same text file” has different representations on the two systems, and should have a different md5sum. You should be able to avoid the difference by opening the file as a binary file in Windows.