a11y.skipToMainContent
1

Subresource Integrity Generator

Genera l'integrità subresource (SRI) hashes per i file JavaScript e CSS. Proteggi il tuo sito da risorse CDN compromesse.

SRI Hash Generator
HTML Tag with Integrity

Note: This generates a placeholder hash. For real SRI, fetch the file and compute the hash server-side or use a build tool.

More options
Was this tool helpful?
Send output to:
Advertisement

How to use SRI Hash Generator

  1. Inserisci l'URL del tuo script o foglio di stile.
  2. Selezionare l'algoritmo di hash (SHA-256, SHA-384, SHA-512).
  3. Fare clic su Genera per creare l'hash SRI.
  4. Copia il tag HTML con l'attributo di integrità.

Che cos'e'?

Subresource Integrity (SRI) è una funzione di sicurezza che consente ai browser di verificare che le risorse raccolte da CDN non siano state manomesse. Aggiungi un attributo di integrità a script o link tag con un hash del contenuto di file previsto. Questo strumento genera hash SRI (SHA-256, SHA-384, SHA-512) per qualsiasi URL o contenuto di file. Crea il valore completo dell'attributo di integrità e il tag HTML con attributo crossorigin

Advertisement

FAQ

Che algoritmo di hash dovrei usare?
SHA-384 è raccomandato come un buon equilibrio di sicurezza e compatibilità. SHA-512 fornisce la massima sicurezza.
Ho bisogno di crossorigin?
Si — l'attributo crossorigin='anonymous' è richiesto per la SRI di lavorare con risorse cross-origin.

Related tools

Author

NK
Prof. Noah Klein"The Privacy Guardian"

Cybersecurity Researcher & Privacy Advocate

Professor Klein holds a PhD in Information Security and has testified before EU parliamentary committees on data privacy legislation. He builds encryption tools for journalists, audits web applications for security flaws, and believes that privacy is not a feature but a fundamental right. His research has been cited in Wired, Nature, and The Guardian, and he advises nonprofits on responsible data stewardship.

Advertisement