Vai al contenuto principale
Bethemesh
Sicurezza e privacy

Generatore di hash SRI

Crea localmente attributi SRI SHA-256, SHA-384 o SHA-512 per risorse caricate da una CDN.

Integra questo widget

Personalizza il risultato, controlla l’anteprima e copia il codice.

Anteprima

Tipo di codice di integrazione

Codice da copiare

Responsive e ridimensionato automaticamente da Bethemesh.

  • 100% locale
  • Immediato
  • Gratuito
  • Nessun account
  • Funziona offline
  • Appunti

Origine

Perché usare questo strumento?

Subresource Integrity lets browsers verify that a script or stylesheet downloaded from a CDN exactly matches the expected file. This tool computes the digest locally and prepares the required HTML attributes.

100% locale e sicuro

I tuoi dati restano sul dispositivo e non vengono mai inviati ai nostri server.

Elaborazione intelligente

Genera o verifica dati sensibili con controlli chiari e immediati.

Formati supportati

Stringhe, chiavi, hash e formati tecnici in base alla funzione di sicurezza.

Risparmia tempo

Ottieni in pochi secondi un risultato pulito e pronto all’uso, senza installazioni o configurazioni complesse.

Guide

Come usare questo strumento

  1. 1

    Add the resource

    Paste file contents or select a JavaScript or CSS file from your device.

  2. 2

    Choose the algorithm

    SHA-384 is a common robust choice for external Web resources.

  3. 3

    Copy the tag

    Add the integrity and crossorigin attributes to your script or link tag.

Consigli e buone pratiche

  • Regenerate the hash whenever the remote file changes.
  • Ensure the CDN server supports CORS requests.
  • Prefer SHA-384 or SHA-512 for new integrations.

Domande frequenti

What is SRI for?

SRI prevents the browser from executing an external resource when its content does not match the expected digest.

Is the file uploaded?

No. Web Crypto calculates the digest directly in your browser.

Why add crossorigin?

SRI checks for cross-origin resources generally require a CORS-compatible request.

Questo strumento ti è stato utile?

Flusso di lavoro consigliato

Continua l’elaborazione

Scopri gli strumenti che si integrano naturalmente prima, dopo o insieme a questo.

Strumenti complementari

Sicurezza e privacy

Generatore di hash

Genera l’impronta di un testo con diversi algoritmi di hashing comuni.

100% locale
Usa questo strumento
Sicurezza e privacy

Generatore e verificatore HMAC

Genera o verifica HMAC SHA-256, SHA-384 e SHA-512 localmente.

100% localeNuovo
Usa questo strumento
Sicurezza e privacy

Comparatore di hash

Confronta due hash o impronte per verificare immediatamente se corrispondono esattamente.

100% locale
Usa questo strumento