How to Verify SHA1 and SHA256 Checksum on Mac

It is incredibly easy to add a malicious components (malware) to DMG files,  uploading them to file sharing websites like sourceforge.net, & infecting computers on a mass scale.  SHA checksum is added to DMG files like TransmissionBT1, & Handbrake.fr2 to detect file tampering.

How to check SHA checksums:

In terminal, find the file(s) you’d like to check. “cd” command is to change directories, “ls” is to list files in a folder.

Use the following syntax: shamus file.dmg (Illustrated below)

sha checksum mac
sha checksum mac

The default for the shasum command is to use SHA1, the most common hash type, but this can be changed with the -a flag if necessary to 224, 256, 384, or 512.

Finally you can check the hexadecimal string on the main downloading website:

handbrake
handbrake

Always remember to download the files from a reputable source.

1. Popular BitTorrent Client Transmission Gets Infected With Malware Again
2. HandBrake hacked to drop new variant of Proton malware

Isaac Adams-Hands

Full Stack Developer, Digital Marketer, and InfoSec enthusiast. He received his Bachelor’s Degree from the University of Western Sydney and his Business Diploma from Georgian College before joining various marketing positions in search portals, e-commerce, higher education, and addiction recovery services.

Follow @ twitter

Related posts

Installing Memcached

Memcached is a general-purpose distributed in-memory object caching system, which is often used to speed up and optimize back-end dynamic database performance. It does this by temporarily storing data and objects in the servers RAM/memory (like rendering a popular WordPress page on your blog). This reduces the number of direct requests to your databases, saving… Read More

Saving your Data

Spending some time at the cottage has led me to realize I can burn through 12GB of data really fast. Here are 6 ways to save data at the cottage, when traveling abroad, or on poor bandwidth connections: 1. Use Alternative Sources Ditch News & Magazine styled websites, alternatively, use Twitter to keep up-to-date 2…. Read More