Skip to content

Instantly share code, notes, and snippets.

@vancluever
Last active November 8, 2015 17:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save vancluever/6942a3429460768a797c to your computer and use it in GitHub Desktop.
Save vancluever/6942a3429460768a797c to your computer and use it in GitHub Desktop.
Verify files (sums, GPG, etc)
# Verify GPG signature - see https://www.gnupg.org/gph/en/manual/x135.html
gpg --verify doc.sig doc
# Verify SHA1 sum (if you have file)
shasum -c SIGFILE
# Verify SHA1 sum (you don't have file)
echo "SUM FILE" | shasum -c
# possible bash function for the above
shaverify() {
echo "$1 $2" | shasum -c
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment