This page looks plain and unstyled because you're using a non-standard compliant browser. To see it in its best form, please upgrade to a browser that supports web standards. It's free and painless.

Paul's Time Sink

| Main | Albums |

« | »

sha1sum for Mac OS X

Paul Westbrook | 30 July, 2005 13:23

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: ,

thanks [Reply]

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 :)

miguel | 18/08/2005, 17:36

[Reply]

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

sergey | 20/08/2005, 12:15

openssl [Reply]

Just use openssl:

$ openssl dgst -sha1 FC4-i386-disc1.iso

SHA1(FC4-i386-disc1.iso)= 3fb2924c8fb8098dbc8260f69824e9c437d28c68

Mike | 10/10/2005, 08:26

ty mike! [Reply]

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

fink | 18/11/2005, 15:16

[Reply]

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

Atul | 20/06/2006, 11:02

coreutils [Reply]

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

remcoder | 09/07/2006, 12:17

Ok... [Reply]

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"

Sunnz Yiu | 15/08/2006, 06:24

Add comment

Topic

Text

Your name

Your email address

Your personal page (if any)




Powered by LifeType
Design by Book of Styles