Skip to content

Instantly share code, notes, and snippets.

@ajeebkp23
Last active June 7, 2024 08:34
Show Gist options
  • Save ajeebkp23/70d9a774dded1a03659767b3f8a1f9e5 to your computer and use it in GitHub Desktop.
Save ajeebkp23/70d9a774dded1a03659767b3f8a1f9e5 to your computer and use it in GitHub Desktop.
Compare sha 256 with file
# https://security.stackexchange.com/a/219325
sha256() {
echo "$1 $2" | sha256sum --check
}
# sha256 <expected-sha-256-sum> <name-of-the-file>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment