Software recommendation: “true or false” immediately identify the hash value of the comparison file

On some of the more formal download sites, each downloaded file comes with a hash value (Figure 1). These hashes are unique, and if the hash of the downloaded file is different from the original value provided by the website, then the file is probably corrupted or has been tampered with by someone else. To view and compare the hashes of downloaded files, we can use the free tool NirSoft HashMyFiles (http://www.nirsoft.net/utils/hashmyfiles-x64.zip, hereinafter referred to as NHM).

sd-hxz-01

Figure 1 Hash values provided by the download site

After starting NHM and importing the downloaded file, the program will automatically display the hash value of the file. Some download sites provide SHA1 hash value, in order to facilitate comparison and avoid misidentification due to case (e.g. 0 and o, l and 1), we click “Options → Show hash value in uppercase” on the toolbar, then right click on the file to be verified in the program window, and select “Copy SHA1 checksum” in the pop-up menu (Figure 2). Select “Copy SHA1 checksum” in the pop-up menu (Figure 2).

sd-hxz-02

Figure 2 Copy check digit

Then just paste both the hash provided by the website and the above copied hash into Notepad to compare. If you want to check multiple files quickly, you can also use the command line method. For example, if you need to upload multiple files in the “C:\Users\cfan\Downloads\” folder of computer A to Netflix, you can first type D:\HashMyFiles.exe /file “C:\Users\cfan\Downloads\” in the command prompt. Downloads\*. *” /stab “C:\Users\cfan\Downloads\myfile.csv” (D:\HashMyFiles.exe is the installation path), so you can get the hash value of all files in “myfile.csv”, and upload this file to network disk. When we download these files on computer B, use the above command again to export the hash values of all files named “myfile1.csv”. Then use Excel to open “myfile.csv”, and then copy the SHA1 hash value of “myfile1.csv” in column D, select the data in columns C and D, and click “Start →Conditional Format → Repeat Value → Unique Value”, so you can quickly find the hash value is not the same file (Figure 3).

sd-hxz-03

Figure 3 Batch comparison of hash values

In addition, NHM can import files from different folders, and it will automatically calculate the hash value of each file, and then click “Options → Mark files with the same validation code”, so that NHM can automatically identify files with the same hash value and display them with different colors. If the relevant values of the files are exactly the same, it is equivalent to using this method to find out the duplicate files in the local machine accurately (Figure 4).

sd-hxz-04

Figure 4 Find duplicate files

Leave a Comment