About This Project
The SRI Generator is a privacy-focused, offline-first tool designed to help developers secure their web applications using Subresource Integrity (SRI) without the headache of CORS errors or command-line utilities.
"Secure Subresource Integrity Hashes. Offline & Local."
How It Works
Unlike many online hash generators that upload your files to a remote server to be processed, this tool runs entirely in your browser. It leverages the modern crypto.subtle Web API to calculate SHA-256, SHA-384, and SHA-512 hashes directly on your machine.
Usage Instructions
- Select your desired hashing algorithm (SHA-384 is recommended for most use cases).
- Drag and drop your
.jsor.cssfile into the drop zone, or click to upload. - The tool instantly generates the hash and provides a ready-to-copy HTML tag.
- Copy the Integrity attribute or the full tag into your project.
Technical Details
This project is built with a commitment to simplicity and standards:
- No Dependencies: Pure HTML, CSS, and Vanilla JavaScript.
- Privacy First: No tracking, no cookies, no server-side processing.
- Design: "Zinc" color palette for a clean, professional dark mode aesthetic.