SRI

SRI 哈希生成

生成 SHA256/384/512 完整性哈希

🔒 100% client-side — your data never leaves this page
Resource Content
SRI Hashes
sha256
sha384
sha512
🔒 100% client-side

About this tool

输入 JS 或 CSS 内容即可生成 Subresource Integrity 所需的 sha256/sha384/sha512 完整性哈希,结果可直接用于 script/link 的 integrity 属性。适用于 CDN 资源校验、前端安全加固和发布流程核验。

Frequently Asked Questions

What is SRI used for?

SRI lets browsers verify that fetched resources have not been modified by comparing cryptographic hashes.

Which hash algorithm should I use?

SHA-384 is a common practical default, while SHA-256 and SHA-512 are also valid.

Can I hash a URL directly?

This tool hashes provided content text. For remote files, paste the exact file content first.