Mac Terminal – Calculating SHA-256 in OSX

By default, doing a shasum in mac terminal gives you the shasum using algorithm 1. We want to use algorithm 256 to do a shasum 256. The -a or --algorithm switch gives allows us to change the algo.

Step one, open up terminal. Then:

Enter: shasum -a 256 path/to/file

Leave a Reply

Your email address will not be published. Required fields are marked *