#!/bin/bash # usage sha-hash <256 | 384 | etc> shasum -b -a $1 $2 | awk '{ print $1 }' | xxd -r -p | base64