SRI Hash Generator

Generate Subresource Integrity hashes for scripts and stylesheets.

Hash Algorithms

About Subresource Integrity (SRI)

Subresource Integrity (SRI) is a security feature that enables browsers to verify that resources they fetch (for example, from a CDN) are delivered without unexpected manipulation. It works by allowing you to provide a cryptographic hash that a fetched resource must match.

How to Use It

After generating the hashes, you add an `integrity` attribute to your `<script>` or `<link>` tag. You can also add a `crossorigin` attribute, which is required for SRI to work on third-party resources.

<script src="https://code.jquery.com/jquery-3.7.1.min.js"
    integrity="sha256-..."
    crossorigin="anonymous"></script>