Skip to content

Instantly share code, notes, and snippets.

@kliph
Created February 12, 2018 14:47
Show Gist options
  • Save kliph/dd59bfeee06ea43e70fec76b13597b34 to your computer and use it in GitHub Desktop.
Save kliph/dd59bfeee06ea43e70fec76b13597b34 to your computer and use it in GitHub Desktop.
Calculate the base64-encoded sha256 hash of a file's contents
shasum -a 256 Gemfile.lock | awk '{ print $1 }' | openssl base64
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment