Tip Details Add a Related Tip

Rate as: Positive Negative

Computing a hash value on the Mac

If you need to compute a hash on the Mac, the only way to do this is using the openssl command on the terminal. The problem though is that the Mac uses an older version of openssl, so the most modern has algorithm it supports is SHA1. If you need to confirm a hash using RIPEMD160, SHA256, SHA384, SHA512, SHA224 then openssl won't work for you.

The way to perform a more advanced hash is to use the GNU Privacy Guard application, also known as gpg. You can download a version of for the Mac here: http://macgpg.sourceforge.net/. Once you download the file, the install is pretty obvious -- just expand the zip and run the package.

After the install, you'll have a new app in your Applications directory called "start-gpg-agent". When you click on it, nothing really happens. But don't worry, it's working, you now have the "gpg" command available from the terminal.

To then use gpg to compute a hash on the Mac, you open a terminal window and type something like the following:

gpg --print-md sha256 FILE_NAME

where you replace FILE_NAME with the file you want to compute the hash for. Using gpg in this manner, you can compute hashes using the RIPEMD160, SHA256, SHA384, SHA512, SHA224 algorithms on your Mac.
Rating: 100% positive, 1 Vote
Categories: Mac security hash
Added: on Jul 22, 2009 at 8:09 am
Added By: an anonymous user
Searches: mac hash gpg compute security

Comments on this Tip

Add a Comment
There are no comments for this tip
Your Comment:
(how to format)
Rate This Tip:

Verify Humanity:
Sorry, we know it's annoying, but please enter the characters shown in the image to the left so that we know you're an actual person and not an evil spammer. Thanks.
       

Related Tips

Plain text email in Apple Mail

100% positive, 0 comments
– Tip added by an anonymous user on Aug 22, 2008 at 12:53 pm

Get the serial number of your missing iPod

Categories: Mac iPod security
100% positive, 1 comment - last added on Apr 15, 2008 at 9:16 am
– Tip added by an anonymous user on Apr 15, 2008 at 8:02 am

Organizing mailboxes in Snow Leopard

Categories: Mac Snow Leopard Mac
100% positive, 0 comments
– Tip added by an anonymous user on Oct 15, 2009 at 9:03 am

Protecting files on the Mac

Categories: Mac security files
100% positive, 0 comments
– Tip added by an anonymous user on Jul 17, 2008 at 9:45 am

Recover your stolen Mac

Categories: mac security theft
100% positive, 0 comments
– Tip added by Marcos84 on Oct 04, 2007 at 9:35 am

Secure erased data on your Mac

Categories: Mac security
no ratings, 0 comments
– Tip added by an anonymous user on Oct 28, 2008 at 8:57 am

Safari search history

no ratings, 0 comments
– Tip added by an anonymous user on Oct 08, 2008 at 2:50 pm

Avoid having your Mac hijacked

Categories: Mac Apple remote security
no ratings, 0 comments
– Tip added by an anonymous user on Sep 03, 2008 at 10:07 am

Protecting printed PDFs on the Mac

Categories: Mac pdf security
no ratings, 0 comments
– Tip added by an anonymous user on Feb 07, 2008 at 7:21 am

Fix the Mac Office 2008 security bug

no ratings, 0 comments
– Tip added by an anonymous user on Jan 26, 2008 at 8:45 am

hotel room security

Categories: hotel travel security
100% positive, 0 comments
– Tip added by an anonymous user 4 days ago

Changing annotation text properties in Preview

Categories: Mac Preview Annotating text
100% positive, 0 comments
– Tip added by an anonymous user on Nov 09, 2009 at 7:00 am

Change file opening behavior in Coda

100% positive, 0 comments
– Tip added by an anonymous user on Nov 03, 2009 at 8:09 am

Ignore button not working in Snow Leopard spell checker

100% positive, 0 comments
– Tip added by an anonymous user on Nov 02, 2009 at 12:50 pm

Setting a screen lock on the Droid

no ratings, 0 comments
– Tip added by an anonymous user 6 days, 23 hours ago

Add new iChat and Photo Booth effects

no ratings, 0 comments
– Tip added by an anonymous user on Nov 13, 2009 at 7:40 am

Turn off dock expose menus in Snow Leopard

no ratings, 0 comments
– Tip added by an anonymous user on Nov 12, 2009 at 5:56 pm

Show links when composing mail on a Mac

no ratings, 0 comments
– Tip added by an anonymous user on Nov 12, 2009 at 7:56 am

Change the Expose window higlight color

no ratings, 0 comments
– Tip added by an anonymous user on Nov 06, 2009 at 6:21 am

Copying email address in Snow Leopard

Categories: Mac Snow Leopard Mail
no ratings, 0 comments
– Tip added by an anonymous user on Oct 30, 2009 at 7:06 pm