π§· SRI Hash Generator
Paste or upload a JS/CSS file's contents and get its SHA-256, SHA-384 and SHA-512 digests, plus ready-to-use integrity attribute values β computed live, entirely in your browser.
1. Input
2. Hashes & integrity attributes
What is Subresource Integrity?
Subresource Integrity (SRI) lets a browser verify that a file fetched from a CDN or third-party
host β a <script> or stylesheet <link> β hasn't been
tampered with. You compute a cryptographic hash of the exact file content you expect, and add
it to the tag's integrity attribute (with crossorigin="anonymous" so
the browser can read the response to check it). If the file the browser actually downloads
doesn't hash to that value β because it was modified, replaced, or served incorrectly β the
browser refuses to execute or apply it. The hash must exactly match the bytes served, so
regenerate it any time the vendored file is updated.