cancel
Showing results for 
Search instead for 
Did you mean: 

Where to get SHA1SUM

SOLVED
Go to solution
Fern H2O
Frequent Advisor

Where to get SHA1SUM

Hello All,

I need to verify some files using SHA1SUM. Can anyone tell me where to get this? I've googled for the past 30 mins but I can't find any link to where I can download this program.

Please Help!
10 REPLIES
Steven E. Protter
Exalted Contributor

Re: Where to get SHA1SUM

Shalom,

http://h20392.www2.hp.com/portal/swdepot/displayProductInfo.do?productNumber=md5checksum

That tool might do the job.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Fern H2O
Frequent Advisor

Re: Where to get SHA1SUM

Hello Steven,

I already have MD5, the problem is when i use it i get a different check sum than i should be getting and I'm pretty sure it's because I'm not using the required program SHA1sum.

Thanks anyways,
James R. Ferguson
Acclaimed Contributor

Re: Where to get SHA1SUM

Hi:

If you have a Linux distro you probably have 'shasum' there.

Regards!

...JRF...
Steven E. Protter
Exalted Contributor

Re: Where to get SHA1SUM

Update:

RHEL 5.3 has sha1sum

So you can move the files to NFS or a Linux box and verify them there.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Steven Schweda
Honored Contributor

Re: Where to get SHA1SUM

A Google search for "sha1sum.c" found some
reasonable code pretty easily (first item,
less than "30 mins").

http://gd.tuwien.ac.at/privacy/gnupg/binary/sha1sum.c

I made one change to resolve a compiler
warning (%CC-W-PTRMISMATCH1):

alp $ gdiff sha1sum.c_orig sha1sum.c
330c330
< char buffer[4096];
---
> unsigned char buffer[4096];

I don't know if it does what you want, but
there it is.
James R. Ferguson
Acclaimed Contributor

Re: Where to get SHA1SUM

Hi (again):

A bit of background:

http://en.wikipedia.org/wiki/Shasum

http://en.wikipedia.org/wiki/SHA-1

Regards!

...JRF...
Steven Schweda
Honored Contributor

Re: Where to get SHA1SUM

> http://gd.tuwien.ac.at/privacy/gnupg/binary/sha1sum.c

Hmmm:

#undef BIG_ENDIAN_HOST

You might need to adjust that a bit on some
systems.
SANTOSH S. MHASKAR
Trusted Contributor

Re: Where to get SHA1SUM

Hi,

U can use mhash (mhash-0.9.9), it supports both MD5 and SH1 hash.

It is available at

http://hpux.connect.org.uk/hppd/hpux/Sysadmin/mhash-0.9.9/


-Santosh Mhaskar
SANTOSH S. MHASKAR
Trusted Contributor
Solution

Re: Where to get SHA1SUM

Hi,

Sorry, above package is just library, but
u can use openssl to get sha1 hash

eg.

# openssl dgst -sha1

or

# openssl sha1


-Santosh Mhaskar
Fern H2O
Frequent Advisor

Re: Where to get SHA1SUM

Thank You All.