DD
DevDash

SRI Hash Generator — Subresource Integrity Hashes

Quick Answer: SRI (Subresource Integrity) hashes let browsers verify that CDN-hosted scripts and stylesheets have not been tampered with. Paste your script or stylesheet content to generate the integrity attribute: integrity="sha384-[hash]".

FAQ

What is Subresource Integrity?

SRI lets you add an integrity attribute to <script> and <link> tags. The browser checks the file hash against this value and blocks execution if they do not match.

Which hash algorithm should I use for SRI?

Use SHA-384 (the default and most common). Browsers support SHA-256, SHA-384, and SHA-512. SHA-384 is the recommended balance of security and performance.

Want API access + no ads? Pro coming soon.