Skip to content

Instantly share code, notes, and snippets.

@takinbo
Created January 30, 2020 09:57
Show Gist options
  • Save takinbo/d8dffb367d38907b60d1a49546ac6420 to your computer and use it in GitHub Desktop.
Save takinbo/d8dffb367d38907b60d1a49546ac6420 to your computer and use it in GitHub Desktop.
calculate the sha256 hash of a hex string
echo -n $1 | xxd -r -p | sha256sum -
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment