sha1sum for Mac OS X

I have finished downloading all of the disk images for Fedora Core 4 on my mac.  I wanted to verify that the files were not corrupted.  Fedora provides the sha1 checksum for each of the images for this purpose.  Mac OS X doesn’t provide md5sum or sha1sum tools at all.  Fink does provide a way to install md5sum, but not sha1sum.

This web site provides a small package that includes md5sum, sha1sum, and ripemd160sum,  I was able to compile it just fine.  The only problem that I had was during the “make install” step the Makefile attempted to set the owner to a nonexistent one in Mac OS X.  Even with that problem the programs work fine.

Technorati Tags: ,

8 Comments on “sha1sum for Mac OS X”

  1. miguel
    August 18, 2005 at 5:36 pm #

    hey, just googled for “sha1sum” and “os x” on google and you were one of the first hits. just want to thank you for the link :)

  2. sergey
    August 20, 2005 at 12:15 pm #

    There is an easier way — sha1sum is part of the textutils package, which can be installed through Fink.

  3. Mike
    October 10, 2005 at 8:26 am #

    Just use openssl:
    $ openssl dgst -sha1 FC4-i386-disc1.iso
    SHA1(FC4-i386-disc1.iso)= 3fb2924c8fb8098dbc8260f69824e9c437d28c68

  4. fink
    November 18, 2005 at 3:16 pm #

    awesome! i don’t have dev tools on this mac; that helped a lot!

  5. Atul
    June 20, 2006 at 11:02 am #

    thanks a lot. that bit abt openssl helped a lot.

  6. remcoder
    July 9, 2006 at 12:17 pm #

    there’s also the coreutils package from DarwinPorts which contains both md5sum and sha1sum. All tools in this package start with a ‘g’ tho, so you’ll have to enter:
    $ gsha1sum

  7. Sunnz Yiu
    August 15, 2006 at 6:24 am #

    It is weird that OSX doesn’t have sha1sum command… however I am putting this one into .profile, hope it works >_<
    alias sha1sum=”openssl dgst -sha1″

    • Alec Missine
      April 21, 2011 at 11:12 am #

      It did not work for me, unfortunately.

Leave a Comment

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Connecting to %s

Follow

Get every new post delivered to your Inbox.

Join 352 other followers