Created
March 12, 2024 06:33
-
-
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
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
#!/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