Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

DesertFox

macrumors member
Original poster
Nov 25, 2004
72
0
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!
 
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.
 
  • Like
Reactions: downeyt
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.
 
in terminal just type shasum -a512 then the filepath with spaces in between the command, -option and filepath (or just cd to the right folder first) type the first couple letters or few then hit tab to fill in the rest if the file name is long.
Example: shasum -a512 /Users/you/Downloads/fileyouwanttocheck.tar.gz
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.