ToolCabana

Generador de integridad de subrecursos

Genera valores SRI para recursos subidos.

Favorites are saved in this browser. Find them in My favorites.

Generador de integridad de subrecursos

Your input stays in this browser unless stated otherwise
Clear your input, files and result, and restore the default settings.

Drop your files here

or choose files from your device

Cómo usar Generador de integridad de subrecursos

Subresource integrity generator hashes a script, stylesheet or other file you select and returns an integrity value, such as sha384- followed by the base64 digest, ready for an integrity attribute. Choose SHA-384, the default, or SHA-256 or SHA-512. For cross-origin assets, pair it with the crossorigin attribute set to anonymous and confirm the server supports CORS.

  1. Elige un archivo de origen. Si la herramienta acepta varios archivos, ordénalos como quieras.
  2. Configura el algoritmo.
  3. Ejecuta el generador de integridad de subrecursos, revisa la salida y usa los controles disponibles para copiar o descargar.

Qué admite esta herramienta

Genera valores SRI para recursos subidos.

Algoritmo
SHA-384 · SHA-256 · SHA-512

Límites y procesamiento

Hasta 200 archivos, 20 MB cada uno y 100 MB en total. Los PDF están limitados a 500 páginas, las hojas de contactos a 100 páginas y los árboles de marcadores a 1,000 entradas y 20 niveles de anidación. Las operaciones individuales aplican límites de salida menores.

Preguntas frecuentes

Which hash algorithm should I choose for SRI?

SHA-384 is selected by default, and SHA-256 and SHA-512 are also available; all three are accepted in integrity attributes. The prefix in the output, such as sha512-, tells the browser which algorithm produced the digest.

Why does my SRI hash not match the CDN file?

The hash covers the exact bytes of the file you select. If the CDN serves a different version, build or line endings than your local copy, the values differ. Download the exact file URL you reference and hash that copy.

How do I add the integrity value to a script tag?

Copy the output into the integrity attribute of the script or link element. For files loaded from another origin, also add the crossorigin attribute with the value anonymous, which requires the server to send CORS headers.

¿Dónde se procesa mi entrada?

Esta operación procesa su fuente en tu navegador. Copiar y descargar son acciones explícitas; la entrada de origen no se guarda en una cuenta ni en un historial.

¿Cuáles son los límites de entrada?

Hasta 200 archivos, 20 MB cada uno y 100 MB en total. Los PDF están limitados a 500 páginas, las hojas de contactos a 100 páginas y los árboles de marcadores a 1,000 entradas y 20 niveles de anidación. Las operaciones individuales aplican límites de salida menores.