# Generatore di hash > Come ottieni l’hash di un testo? Hash SHA-256, SHA-512, SHA-1 e MD5 di qualsiasi testo, calcolati nel browser. Ottieni l’hash SHA-256, SHA-384, SHA-512, SHA-1 o MD5 di un testo in esadecimale o Base64 e confrontalo con quello atteso. Tutto resta sul dispositivo. - Page: https://how.box/it/hash/ - Runs entirely in the browser. - License: HowToolbox's own text and data (titles, explanations, FAQs, tool descriptions and schemas, this file) are CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/); AI training and answers are welcome. Attribute "HowToolbox (how.box)" with a link to the page used. Third-party data keeps its own terms; the name and logo are not licensed. Publisher: HowToolbox, contact@how.box. Terms: https://how.box/it/about/terms/ ## Inputs Answer link: https://how.box/it/hash/?alg={alg}&text={text}&enc={enc}&expect={expect} - `alg` (md5, sha-1, sha-256, sha-384 or sha-512): md5, sha-1, sha-256, sha-384 or sha-512. Example: `sha-256`. - `text` (text): The text to hash. Example: `Hello, world!`. - `enc` (hex or base64): hex or base64. Example: `hex`. - `expect` (text): A hash to compare the result with. Example: ``. Example answer: https://how.box/it/hash/?alg=sha-256&text=Hello%2C+world%21&enc=hex&expect= The page computes the answer in the browser: read results from the agent tools below, not from the page HTML. ## Agent tools - `hash_compute`: Computes the hash (message digest) of a text: MD5 (RFC 1321, checksums only), SHA-1, SHA-256, SHA-384 or SHA-512 (FIPS 180-4), reading the text as UTF-8. - MCP, one POST to https://how.box/mcp: `{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"hash_compute","arguments":{"algorithm":"sha-256","text":"Hello, world!","encoding":"hex","expected":""}}}` - GET: https://how.box/mcp/run/hash_compute?algorithm=sha-256&text=Hello%2C+world%21&encoding=hex&expected= ## How it works Un hash è una breve impronta dei dati. Lo stesso input produce sempre lo stesso hash, ma basta cambiare un carattere perché l’hash cambi completamente. Non puoi risalire ai dati dall’hash: per questo è utile per controllare che i dati siano arrivati intatti, trovare duplicati e memorizzare impronte al posto dei dati stessi. SHA-1, SHA-256, SHA-384 e SHA-512 sono gli algoritmi Secure Hash Algorithms dello standard FIPS 180-4 e producono 160, 256, 384 e 512 bit. Ad esempio, l’hash SHA-256 di abc inizia con ba7816bf (RFC 6234). MD5 (RFC 1321) produce 128 bit. Il testo viene codificato in UTF-8 prima del calcolo, e il risultato è espresso in esadecimale o Base64. MD5 e SHA-1 non sono sicuri perché si possono creare intenzionalmente dati diversi con lo stesso hash (RFC 6151 per MD5, RFC 6194 per SHA-1). Rilevano ancora danni accidentali, quindi molte pagine di download li riportano. Un hash non è una cifratura e da solo non basta per memorizzare password. Il testo viene elaborato nel browser e non viene mai caricato online. ## FAQ **Quale algoritmo devo usare?** SHA-256 per quasi tutto. Usa MD5 o SHA-1 solo quando un altro sistema, ad esempio una vecchia pagina di download, li richiede. **Perché il mio hash è diverso da quello che ho ricevuto?** Verifica di aver scelto lo stesso algoritmo e che il testo sia identico, inclusi spazi e a capo. Basta un carattere diverso per ottenere un hash completamente diverso. Il campo di confronto mostra subito se corrispondono. **Si può ricavare il testo da un hash?** No. Un hash perde informazioni. Si possono però indovinare testi brevi o comuni provandone molti: non affidarti a un semplice hash per nascondere una password. **Un’interruzione di riga cambia l’hash?** Sì. Fa parte dell’input, quindi un testo altrimenti identico può produrre un’impronta diversa. **Hex e Base64 sono hash diversi?** No. Sono due modi di scrivere gli stessi byte dell’impronta. Scegli la codifica del valore con cui fai il confronto. More: [HowToolbox index](https://how.box/llms.txt) · [Agent Skill](https://how.box/skill.md) · [agent terms](https://how.box/it/about/agents/)