IJM
Developer ToolsCrypto, Encoding & Auth

Subresource Integrity (SRI) Hash Generator

Generate integrity="sha384-..." attributes for <script> and <link> CDN tags from pasted JS/CSS code locally.

Processed in browserNo upload

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

  1. Paste the exact minified JS or CSS asset body into Script or Stylesheet Content.
  2. 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.

Related Tools

Ranked by matching inputs, outputs, and workflow compatibility

View all 134 in Developer Tools →