SRI Hash Generator
Generate SRI (Subresource Integrity) hashes for CDN resources. Ensure content security and integrity with SRI validation.
Loading tool...
What is SRI Hash Generator?
SRI Hash Generator creates Subresource Integrity hashes (SHA-384) for your script and link tags, ensuring browsers only execute trusted external code.
Key Benefits
- Prevent XSS
- Secure CDNs
- Browser standard
- Easy implementation
Common Use Cases
- β’Securing external libs
- β’Bank websites
- β’Compliance
- β’Web security
How to Generate SRI Hash
- Input: Upload file or paste URL.
- Hash: Select algorithm (SHA-384 recommended).
- Copy: Get integrity attribute code.
Key Features
- Generate SRI hashes for scripts
- SHA-256, SHA-384, SHA-512
- Fetch and hash from URL
- Full integrity attribute output
- CORS crossorigin attribute
- Copy complete HTML tag
Frequently Asked Questions
What is SRI?
Subresource Integrity. It ensures external scripts haven't been tampered with.
How does it work?
The browser matches the file's hash against the integrity attribute in your script tag.
Which algorithm to use?
SHA-384 is commonly recommended as a good balance of security and performance.
Featured in Collections:Cryptography & Web Security Hardening