Run a terminal (Applications → Utilities → The terminal app), and then perform the following syntax checking
$ md5 /path/to/file $ shasum /path/to/file
If a file path is complex
$ shasum (Drag and drop files here)
Shasum command detection SHA1 default value, and can be modified by the parameter
-a to 224, 256, 384 or 512.
If you are not accustomed to using the terminal commands, you can try simple, efficient and free hash value in checkSum this Apple Mac OS X system calculation software. The hash value can be found with just one drag and drop files CRC32, MD5, MD4, MD2, MDC2, RMD160, SHA, SHA1, SHA-224, SHA-256, SHA-384, SHA-512, etc.