How to check SHA-1 and MD5 hash checksum on your files
- September 9, 2016
- Duplicate Photo Cleaner
To check the SHA-1 and/or MD5 hash checksum of your files, navigate to your terminal. You can use the shortcut to open up spotlight and type “terminal”.
Once in termal you can type the syntax:
shasum /path/to/file
To verify a file named “test.png” and “test2.png” in the current folder we’re in, it would be:
shasum test.png test2.png
That long hexadecimal string is the SHA1 hash.
Similarly for MD5, you can type the same syntax:
md5 /path/to/file
To verify a file named “test.png” and “test2.png” in the current folder we’re in, it would be:
md5 test.png test2.png
In the above screenshot you can also see the MD5 example.
For more details on checking your hash, you can visit the following links.
http://osxdaily.com/2012/02/05/check-sha1-checksum-in-mac-os-x/