Hash & SRI Generator
// SHA-256 · SHA-384 · SHA-512 · checksums · SRI · CSP hashes
Show
Format
Hashes
SHA-256
—
SHA-384
—
SHA-512
—
SHA-1 legacy
—
Subresource Integrity
integrity value
HTML tag
—
—
Hash the exact file the browser will download. A CDN's minified build differs from the npm source, and any change to the file breaks the hash, which is the point.
CSP hash source (for an inline <script> or <style>)
—
Paste the exact contents between the tags, whitespace included. Add the value to script-src or style-src in your policy.