On Mac, after downloading a file, how to you do a checksum?

1

I want to do a checksum on a file I downloaded on my Mac. How can I do this?

user27449

Posted 2010-06-09T01:39:33.277

Reputation: 5 104

Answers

2

In a terminal window type the md5 command followed by the file location.

md5 Downloads/myfile

Chris Nava

Posted 2010-06-09T01:39:33.277

Reputation: 7 009

1

For SHA-1: openssl sha1 <file>. Other algorithms also available; see openssl . If you want an old school checksum see cksum (MD5 and SHA-1 are actually cryptographic hash functions, not simple checksums).

– Chris Johnsen – 2010-06-09T09:35:52.973