ENCODING & HASHING

SRI Hash Generator

Generate Subresource Integrity sha384 values for front-end scripts and stylesheets.

Runs locallyYour input never leaves this device
WORKBENCH

2 MB input limit · no history kept

HOW TO USE

How to use the SRI Hash Generator

Subresource Integrity lets browsers refuse a CDN script or stylesheet that's been tampered with. Paste the exact file contents to get a sha384 integrity value for your script or link tag.

  1. Paste your input into the workbench above. Mask production credentials or personal data first.
  2. Adjust the options you need and click Calculate SRI.
  3. Review and copy the result, then cross-check important conclusions against the original evidence.
USE CASES

SRI Hash Generator use cases

  • Add integrity attributes to third-party CDN scripts.
  • Detect when a hosted library file has changed.
  • Harden front-end supply-chain security.

Related topics: sri, integrity, frontend, supply chain

FAQ

SRI Hash Generator FAQ

Does the SRI Hash Generator upload my data?

No. Tool input and results stay in the current tab. Navigation may load static site assets, but does not upload the data you enter.

Is the SRI Hash Generator free? Do I need an account?

It's free with no account and no usage limits, like every other tool on SecTools.

Can I use the SRI Hash Generator on mobile or offline?

Yes. It works in mobile and desktop browsers and keeps working offline once the page has loaded. You can also self-host the open-source code on an internal network.

Can I treat the SRI Hash Generator's results as a final verdict?

Use them for triage and cross-checking. For important incidents, keep the original evidence and confirm with your formal verification or forensic process.

SECURITY NOTE

Use it safely

This tool supports analysis and interpretation; it doesn't replace a formal security review. Avoid pasting live credentials, private keys or production passwords on a shared computer. Close the tab when you're done and your input is gone.