Skip to content

Instantly share code, notes, and snippets.

@ckunte
Created March 12, 2024 06:33
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 ckunte/2b9ffad19c42e44ac3014724e2df0bc5 to your computer and use it in GitHub Desktop.
Save ckunte/2b9ffad19c42e44ac3014724e2df0bc5 to your computer and use it in GitHub Desktop.
Generate SHA384 hash for file integrity check attribute in link and script tags
#!/usr/bin/env bash
# 2024 ckunte
cat <filename> | openssl dgst -sha384 -binary | openssl base64 -A | pbcopy
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment