Last active
November 8, 2015 17:30
-
-
Save vancluever/6942a3429460768a797c to your computer and use it in GitHub Desktop.
Verify files (sums, GPG, etc)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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