How do I check a SHA512 hash on OS X?

Discussion in 'macOS' started by DesertFox, Sep 16, 2007.

  1. DesertFox macrumors member

    Joined:
    Nov 25, 2004
    #1
    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!
     
  2. Mumford macrumors regular

    Joined:
    Oct 8, 2006
    Location:
    Altadena, CA
    #2
    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.
     
  3. jbz macrumors newbie

    Joined:
    Jun 25, 2009
    #3
    If you want a GUI you utility to do this you could use hashtab at http://www.beeblebrox.org/hashtab.
     
  4. ElectricSheep macrumors 6502

    ElectricSheep

    Joined:
    Feb 18, 2004
    Location:
    Wilmington, DE
    #4
    Try:


    openssl dgst -sha512 <Path/to/file>


    replacing <Path/to/file> with the relative or absolute path to the file you wish to digest.
     
  5. lantrix macrumors newbie

    Joined:
    Dec 6, 2008
    Location:
    Melbourne
    #5
  6. gloo8 macrumors newbie

    Joined:
    Nov 9, 2014
    #6
    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
     

Share This Page