Home > Mac OS X > sha1sum in Mac OS X

sha1sum in Mac OS X

Mac OS X doesn’t come with a sha1sum utility. Neither does fink. So what’s the quickest way to check a sha1sum on a Mac? Use openssl:

openssl sha1 filename

If you’d like to roll this sha1sum check into a simple bash script, create the following sha1sum script:

#!/bin/bash
/usr/bin/openssl sha1 $1

Then make the sha1sum script executable, and run it:

chmod 755 sha1sum
./sha1sum filename

Categories: Mac OS X
  1. PCheese
    December 17th, 2009 at 16:36 | #1

    Try the “shasum” command instead.

  1. No trackbacks yet.
You must be logged in to post a comment.