View Full Version : How do I check a SHA512 hash on OS X?
DesertFox
Sep 16, 2007, 02:45 PM
Hello,
I would like to check the SHA512 hash of a file, but im not sure what the command is in terminal...
I know how to check md5 in terminal, but not SHA512. There is a utility for winblows which checks hashes called hashcalc; is there maybe something analogous for osx?
The SHA512 is suppose to produce a 128 characters string.
Thanks in advance!
Mumford
Sep 18, 2007, 01:44 PM
I have a perl script installed on my system as /usr/bin/shasum. I don't know if that's part of the standard OS install or some addon has later installed it. 'shasum -a 512' will get you what you need.
jbz
Jun 25, 2009, 11:03 PM
Hello,
I would like to check the SHA512 hash of a file, but im not sure what the command is in terminal...
I know how to check md5 in terminal, but not SHA512. There is a utility for winblows which checks hashes called hashcalc; is there maybe something analogous for osx?
The SHA512 is suppose to produce a 128 characters string.
Thanks in advance!
If you want a GUI you utility to do this you could use hashtab at http://www.beeblebrox.org/hashtab.
ElectricSheep
Jun 26, 2009, 09:28 AM
Try:
openssl dgst -sha512 <Path/to/file>
replacing <Path/to/file> with the relative or absolute path to the file you wish to digest.
lantrix
Jul 16, 2009, 04:58 AM
sha512 is not a valid digest for use in OpenSSL as shipped with Leopard (OpenSSL 0.9.7)
Read this on how to update: http://www.cs.washington.edu/homes/aczeskis/openssl.html
vBulletin® v3.8.6, Copyright ©2000-2012, Jelsoft Enterprises Ltd.