Guide · Developer Tools / Crypto, Encoding & Auth
About Subresource Integrity (SRI) Hash Generator
Compute Web Crypto `sha384-...` (plus SHA-256 and SHA-512) Base64 integrity hashes and ready-to-paste `<script>` / `<link>` SRI attributes from pasted JS or CSS.
When to use this tool
Lock third-party CDN stylesheets or vendor scripts against silent supply-chain tampering.
How to use Subresource Integrity (SRI) Hash Generator
- Paste the exact minified JS or CSS asset body into Script or Stylesheet Content.
- Copy the generated `integrity="sha384-..." crossorigin="anonymous"` attribute.
Supported inputs, options, and outputs
- Input: Exact JS or CSS source text.
- Outputs: SHA-256, SHA-384, and SHA-512 SRI integrity strings.
Accuracy notes and limitations
- Hashes the exact pasted UTF-8 string—even a trailing newline difference on the CDN file breaks SRI matching, so copy exact served bytes.
Privacy and browser processing
Security tokens, keys, certificates, OpenAPI schemas, and network payloads are parsed strictly inside browser memory—nothing is logged or uploaded to IJM servers. Hosted deployments load cookie-free analytics and Google Fonts.
Read the full IJM Privacy Policy or browse all Developer Tools.