Support Center

How to check SHA-1 and MD5 hash checksum on your files

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”.

screen_shot_2015-08-15_at_12-52-00_pm

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

screen_shot_2015-08-15_at_12-50-44_pm

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/

http://osxdaily.com/2009/10/13/check-md5-hash-on-your-mac/