Skip to content

h-enk/sri-hash-generator

Repository files navigation

Icon SRI Generator

SRI Generator

Subresource Integrity (SRI) Generator

Progressive Web Application (PWA) generating a <script> or <link> element with an integrity attribute.

GitHub GitHub release (latest SemVer including pre-releases) GitHub Workflow Status (branch) Netlify

Doks — Modern Documentation Theme

App

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 <script> or <link> element

Documentation

Acknowledgements

Based on:

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