Calculate file checksums using openssl

If you need to calculate the checksum of a file on Mac or UNIX simply use openssl:

openssl md5
openssl sha

This command gives you the checksum of the file as a result.

An alternative to calculate these checksums are the commands


MD5 is considered broken for a long time. Therefor md5sum is no longer available on most systems.