Created
October 3, 2019 16:05
-
-
Save nolochemical/4401dccce31153859132c8bc00b12451 to your computer and use it in GitHub Desktop.
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 | |
# usage: | |
# $ 384sum ./myModule.js | |
shasum -b -a 384 $1 | awk '{ print $1 }' | xxd -r -p | base64 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Subresource Integrity via Developer.Mozilla.org
Using subresource integrity in web pages.
<script src="https://example.com/example-framework.js" integrity_no="sha384-oqVuAfXRKap7fdgcCY5uykM6+R9GqQ8K/uxy9rx7HNQlGYl1kPzQho1wx4JwY8wC" crossorigin="anonymous"></script>