Free SRI Hash Generator (Subresource Integrity)
Generate a Subresource Integrity hash for any script or stylesheet · paste the content or upload the file · so a compromised CDN can't tamper with it.
Frequently asked
What is Subresource Integrity?
SRI is a browser feature: you add an integrity="sha384-…" attribute to a <script> or <link> tag, and the browser refuses to run the resource if its hash doesn't match · protecting you if the CDN or third-party host is compromised.
Which hash algorithm should I use?
The generator produces sha256, sha384, and sha512 attributes. sha384 is the common recommendation. Copy the full integrity attribute and add crossorigin="anonymous" to the tag.
Run a full security scan →