https://github.com/h-enk/sri-hash-generator
Subresource Integrity (SRI) Hash Generator (PWA)
https://github.com/h-enk/sri-hash-generator
integrity integrity-tool sha-512 subresource-integrity
Last synced: 4 months ago
JSON representation
Subresource Integrity (SRI) Hash Generator (PWA)
- Host: GitHub
- URL: https://github.com/h-enk/sri-hash-generator
- Owner: h-enk
- License: mit
- Created: 2021-03-23T14:13:06.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2024-05-02T17:16:02.000Z (about 2 years ago)
- Last Synced: 2025-03-03T14:35:28.796Z (over 1 year ago)
- Topics: integrity, integrity-tool, sha-512, subresource-integrity
- Language: JavaScript
- Homepage: https://sri-gen.henkverlinde.com
- Size: 1.68 MB
- Stars: 2
- Watchers: 2
- Forks: 1
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
SRI Generator
Subresource Integrity (SRI) Generator
Progressive Web Application (PWA) generating a <script> or <link> element with an integrity attribute.

## App
- [sri-gen.henkverlinde.com](https://sri-gen.henkverlinde.com/)
## Usage
1. Enter URL of JS or CSS file — or drop a local file
2. Select SHA strength
3. Click Generate
4. Click Copy
5. Paste `` or `<link>` element
## Documentation
- [MDN](https://developer.mozilla.org/en-US/docs/Web/Security/Subresource_Integrity)
- [Can I use](https://caniuse.com/subresource-integrity)
## Acknowledgements
Based on:
- [Subresource Integrity (SRI) Generator](https://github.com/laysent/sri-hash-generator) by LaySent
Major changes:
- Use one SHA option only — following current practice
- Default to SHA-512 — following [current browser support](https://w3c.github.io/webappsec-subresource-integrity/#hash-functions)
- Add Reset button
- Replace Copied alert with in page message
- Replace CSS with [Water.css](https://watercss.kognise.dev/)