Skip to main content

Algoritmi

Come utilizzare Calcolatore Hash

Scegli la modalità di input

Seleziona "Testo" per hashare una stringa oppure "File" per calcolare il checksum di un file locale (trascinalo o selezionalo con il pulsante).

Seleziona gli algoritmi hash

Spunta gli algoritmi desiderati tra MD5, SHA-1, SHA-256, SHA-384 e SHA-512. Puoi selezionarli tutti con "Seleziona tutti" per un confronto rapido.

Configura il formato di output e HMAC

Scegli tra output Esadecimale (hex) o Base64. Attiva "HMAC" e inserisci una chiave segreta se hai bisogno di un codice di autenticazione del messaggio.

Calcola gli hash

Clicca il pulsante "Calcola Hash" per elaborare l'input. I risultati compaiono istantaneamente con algoritmo, valore hash e tempo di calcolo.

Verifica un checksum

Nella sezione "Verifica Checksum" incolla un hash da confrontare: lo strumento ti dirà subito se corrisponde a uno degli hash calcolati.

Suggerimenti

  • Usa "Seleziona tutti" per calcolare tutti gli hash in un'unica operazione e confrontarli: è utile per capire le differenze tra gli algoritmi.
  • Per verificare un download ufficiale (es. una distribuzione Linux), carica il file in modalità "File" e incolla il checksum SHA-256 dalla pagina del fornitore nella sezione "Verifica".
  • Il formato Base64 è più compatto dell'esadecimale e preferito nelle API HTTP (Authorization header, JWT). Scegli hex per compatibilità con strumenti da riga di comando come sha256sum.

Domande frequenti

What is the difference between MD5, SHA-1 and SHA-256?

MD5 (128 bit) and SHA-1 (160 bit) are historical algorithms: fast but vulnerable to collisions, now used only for non-critical checksums. SHA-256 (256 bit) is the current secure standard, recommended for digital signatures, passwords, and file integrity verification.

How is a hash calculator used to verify the integrity of a file?

Select the "File" mode, upload the downloaded file and choose the algorithm indicated by the provider (e.g. SHA-256). Calculate the hash and compare it with the officially published one in the "Checksum Verification" section: if they match, the file is intact.

What is HMAC and when should it be used?

Hash-based Message Authentication Code combines a secret key with the hash algorithm to ensure both message integrity and authenticity. It is used for API signatures, webhook verification, and secure communication where sender identity needs to be verified.

Are files being sent to the server?

No, all processing occurs entirely in the browser via Web Crypto APIs and FileReader, your files and texts are never sent to any server, ensuring total privacy and security.

Which hash algorithm should I use?

SHA-256 is the secure standard for most applications and is universally supported. SHA-512 offers greater theoretical security (512 bits) but is slower on 32-bit CPUs. For critical applications like key or certificate cryptography, prefer SHA-512.

Want to learn more?

Read our in-depth articles on related topics: