Subresource Integrity (SRI) Hash Generator
Generate cryptographic integrity hashes and ready-to-use HTML tags for external JavaScript and CSS assets.
Asset Configuration
SRI Results
--
Ready to generate...
<script src="..." integrity="..." crossorigin="anonymous"></script>
About Subresource Integrity
- Security Guarantee: SRI enables browsers to verify that files fetched from external Content Delivery Networks (CDNs) are delivered without unexpected manipulation or malicious injection.
- Cross-Origin Usage: The `crossorigin="anonymous"` attribute is required when fetching resources from a different origin to ensure security headers match.
- Algorithm Standards: SHA-384 provides a robust balance of security and cryptographic length for modern production environments.