Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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: about 2 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 (almost 4 years ago)
- Default Branch: master
- Last Pushed: 2024-05-02T17:16:02.000Z (8 months ago)
- Last Synced: 2024-10-12T22:29:36.052Z (2 months 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 anintegrity
attribute.![Doks — Modern Documentation Theme](https://raw.githubusercontent.com/h-enk/sri-hash-generator/master/public/sri-hash-generator.png)
## 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/)