Subresource Integrity (SRI) is a security feature that enables browsers to verify that resources they fetch (for example, from a CDN) are delivered without unexpected manipulation. It works by allowing you to provide a cryptographic hash that a fetched resource must match. mdn web docs
Progressive Web App (PWA) generating a <script>
or <link>
element with an integrity
attribute.
App
Usage
- Enter URL of JS or CSS file — or drop a local file
- Select SHA strength
- Click Generate
- Click Copy
- Paste
<script>
or<link>
element
Documentation
Acknowledgements
Based on:
- Subresource Integrity (SRI) Generator by LaySent
Major changes:
- Use one SHA option only — following current practice
- Default to SHA-512 — following current browser support
- Add Reset button
- Replace Copied alert with in page message
- Replace CSS with Water.css