Skip to content

Instantly share code, notes, and snippets.

@yanli0303
Created August 10, 2021 14:11
Show Gist options
  • Save yanli0303/21b2bc4f7abd27de9ac5377f5b7bb829 to your computer and use it in GitHub Desktop.
Save yanli0303/21b2bc4f7abd27de9ac5377f5b7bb829 to your computer and use it in GitHub Desktop.
Shell command for calculating the HTML script tag integrity
cat SCRIPT_FILE | openssl dgst -sha512 -binary | openssl base64 -A
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment