Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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)

Awesome Lists containing this project

README

        



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](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/)