Generador de Hash

Genera hashes MD5, SHA-1, SHA-256, SHA-384 y SHA-512 a partir de cualquier texto. Usa la Web Crypto API nativa. 100% del lado del cliente, sin subidas, sin rastreo.

Publicidad
Publicidad

Genera hashes sin subir tus datos

MD5, SHA-1, SHA-256, SHA-384, and SHA-512 in one click — right in your browser. No uploads, no sign-up, no limits.

100% privado
API Web Crypto nativa
Gratis para siempre

Como usarlo

  1. 1

    Introduce el Texto

    Escribe o pega el texto que quieres hashear en la caja de entrada.

  2. 2

    Haz Clic en Calcular

    Haz clic en 'Calcular Hashes' para generar los cinco hashes a la vez.

  3. 3

    Copia

    Usa el botón Copiar junto a cada hash para copiarlo a tu portapapeles.

¿Por qué usar este Generador de Hash?

Cinco Algoritmos en un Clic

Genera hashes MD5, SHA-1, SHA-256, SHA-384 y SHA-512 simultáneamente, para que puedas comparar o elegir el algoritmo que tu sistema requiere.

Web Crypto API Nativa

Los hashes SHA se calculan usando el `crypto.subtle.digest` integrado del navegador, que está acelerado por hardware y auditado.

Alternar Mayúsculas

Cambia entre salida hex en minúsculas y mayúsculas con un clic para adaptarte al formato que tu cadena de herramientas espera.

Publicidad

Understanding Cryptographic Hashes

¿Qué es una función hash criptográfica?

A cryptographic hash function is a mathematical algorithm that takes an input of any size and produces a fixed-size output called a hash (or digest). The same input always produces the same hash, but even a tiny change to the input produces a completely different hash. For example, the SHA-256 hash of 'hello' is '2cf24dba5fb0a30e26e83b2ac5b9e29e1b161e5c1fa7425e73043362938b9824', while the SHA-256 hash of 'Hello' (capital H) is '185f8db32271fe25f561a6fc938b2e264306ec304eda518007d1764826381969'.

Good cryptographic hash functions have four key properties: (1) Deterministic — the same input always produces the same hash. (2) Fast — computing the hash is quick. (3) Avalanche effect — a small change in input produces a completely different hash. (4) Collision-resistant — it is computationally infeasible to find two different inputs that produce the same hash. SHA-256 and SHA-512 satisfy all four properties; MD5 and SHA-1 do not (they are not collision-resistant).

Publicidad

MD5 and SHA-1 are broken

MD5 was broken in 2008 when researchers demonstrated a practical collision attack — they created two different executable files with the same MD5 hash. SHA-1 was broken in 2017 when Google and CWI Amsterdam announced the SHAttered attack, which produced two different PDF files with the same SHA-1 hash. Both algorithms should be considered cryptographically broken and should not be used for any security-sensitive purpose.

However, MD5 and SHA-1 are still used in legacy systems for checksum verification (where an attacker has no incentive to create collisions). Git uses SHA-1 for content addressing, though it is transitioning to SHA-256. Our tool includes MD5 and SHA-1 for these legacy use cases, but we clearly recommend SHA-256 or SHA-512 for any new application.

Hashing vs. encryption vs. encoding

Hashing is one-way: you cannot recover the input from the hash. Use it for integrity checks and password storage. Encryption is two-way with a key: you can decrypt the ciphertext back to the original. Use it for confidentiality. Encoding (like Base64) is two-way without a key: anyone can decode it. Use it for data compatibility, not security.

Publicidad

Casos de Uso Comunes

Verificaciones de Integridad de Datos

Verifica que un archivo o mensaje no ha sido alterado comparando su hash con un valor bueno conocido.

Direccionamiento de Contenido Estilo Git

Genera hashes SHA-1 o SHA-256 para identificar contenido de forma única, similar a cómo Git almacena objetos.

Integración con Sistemas Heredados

Algunas APIs y protocolos antiguos aún requieren hashes MD5 o SHA-1; esta herramienta los proporciona sin instalar software adicional.

Aprendizaje y Depuración

Inspecciona rápidamente el hash de una entrada conocida mientras aprendes criptografía o depuras una discrepancia de hash.

¿Cómo se compara con otros generadores de hash?

A side-by-side comparison of popular hash generation tools.

CaracterísticaNovaToolsEMOCodeBrowser console
Privacidad (sin subida)100% localSube al servidorLocal
Familia MD5 + SHAAll 5SHA only (no MD5)
API Web Crypto nativaUnknown
Alternar mayúsculasManual
Soporte UTF-8Manual
Mobile friendlyLimitado
Funciona sin conexiónAfter page load

Most online hash generators upload your text to their server. Our tool uses the browser's native Web Crypto API — your input never leaves your device.

Hash Algorithm Quick Reference

Datos clave sobre algoritmos de hash comunes.

Algorithm Overview

MD5

Salida de 128 bits. ROTO — no usar para seguridad. Solo checksums heredados.

Ejemplo:d41d8cd98f00b204e9800998ecf8427e
SHA-1

160-bit output. BROKEN since 2017. Used by Git (transitioning to SHA-256).

Ejemplo:da39a3ee5e6b4b0d3255bfef95601890afd80709
SHA-256

Salida de 256 bits. SEGURO. Recomendado para nuevas aplicaciones.

Ejemplo:e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855
SHA-384

Salida de 384 bits. SEGURO. Usar cuando se requiere salida de 384 bits.

Ejemplo:38b060a751...fbd51ad2f1... (96 chars)
SHA-512

512-bit output. SECURE. Faster than SHA-256 on 64-bit CPUs.

Ejemplo:cf83e1357eef...7da3e (128 chars)

Output Sizes

MD5

16 bytes → 32 hex characters.

Ejemplo:098f6bcd4621d373cade4e832627b4f6
SHA-1

20 bytes → 40 hex characters.

Ejemplo:a94a8fe5ccb19ba61c4c0873d391e987982fbbd3
SHA-256

32 bytes → 64 hex characters.

Ejemplo:9f86d081884c7d659a2feaa0c55ad015a3bf4f1b2b0b822cd15d6c15b0f00a08
SHA-512

64 bytes → 128 hex characters.

Ejemplo:ee26b0dd4af7...28a8ff (128 chars, hash of test)

Casos de Uso

Integrity check

SHA-256 or SHA-512. Compare hash before/after transfer.

Ejemplo:sha256sum file.zip
Password storage

Use bcrypt, scrypt, or Argon2 — NOT plain SHA.

Ejemplo:bcrypt(password, cost=12)
Content addressing

SHA-256 (Git) or SHA-512 (IPFS).

Ejemplo:git: SHA-1 of blob
Legacy checksums

MD5 or SHA-1, only for backward compatibility.

Ejemplo:md5sum legacy.tar.gz

Preguntas frecuentes

¿Qué algoritmos de hash son compatibles?
MD5, SHA-1, SHA-256, SHA-384 y SHA-512. SHA-256 y SHA-512 son las opciones recomendadas para cualquier uso relacionado con seguridad. MD5 y SHA-1 se incluyen solo para compatibilidad con sistemas heredados.
¿Sigue siendo seguro usar MD5?
No. MD5 está criptográficamente roto y nunca debe usarse para almacenar contraseñas, firmas digitales ni ningún propósito sensible a la seguridad. Se incluye aquí solo para verificación de checksums en sistemas heredados.
¿Cómo se calculan los hashes SHA?
SHA-1, SHA-256, SHA-384 y SHA-512 se calculan usando la Web Crypto API nativa del navegador (`crypto.subtle.digest`), que es rápida y criptográficamente segura.
¿Puedo calcular el hash de archivos?
Esta herramienta calcula el hash solo de texto. La entrada se codifica en UTF-8 antes de calcular el hash, por lo que funciona correctamente con caracteres internacionales y emoji.
¿Cuál es la diferencia entre hash y cifrado?
El hash es unidireccional — no puedes recuperar el texto original a partir de un hash. El cifrado es bidireccional — el texto cifrado puede descifrarse de vuelta al original con una clave. Usa hash para verificaciones de integridad y almacenamiento de contraseñas; usa cifrado para confidencialidad.
¿Qué algoritmos de hash son compatibles?
MD5, SHA-1, SHA-256, SHA-384 and SHA-512. SHA-256 and SHA-512 are the recommended choices for any security-related use. MD5 and SHA-1 are provided for legacy compatibility only — they should not be used for new security applications. The SHA-2 family (SHA-256, SHA-384, SHA-512) is considered secure and is used by TLS, Bitcoin, Git, and most modern security systems. SHA-3 is a newer standard but is less widely deployed.
Is MD5 still safe to use?
No. MD5 is cryptographically broken and should never be used for password storage, digital signatures, or any security-sensitive purpose. Researchers demonstrated practical collision attacks against MD5 in 2008, meaning it is possible to create two different inputs that produce the same MD5 hash. MD5 is included in this tool only for checksum verification of legacy systems and for educational purposes. For any new application, use SHA-256 or stronger.
How are the SHA hashes computed?
SHA-1, SHA-256, SHA-384 and SHA-512 are computed using the browser's native Web Crypto API (`crypto.subtle.digest`), which is both fast and cryptographically secure. The Web Crypto API is implemented in native code by the browser vendor and is the same API used for TLS, certificate validation, and other security-critical operations. MD5 is not supported by the Web Crypto API (because it is insecure), so it is computed using a pure JavaScript implementation.
¿Puedo hacer hash de archivos?
This tool hashes text only. The input is UTF-8 encoded before hashing, so it works correctly with international characters and emoji. For hashing files (images, documents, executables), you need to read the file as an ArrayBuffer and pass the raw bytes to the hash function. If you need to verify file integrity, use a command-line tool like `shasum` (macOS/Linux) or `Get-FileHash` (Windows PowerShell).
¿Cuál es la diferencia entre hash y cifrado?
El hash es unidireccional — no puedes recuperar el texto original a partir de un hash. La misma entrada siempre produce el mismo hash, pero no hay forma de revertir el proceso. El hash se usa para verificación de integridad, almacenamiento de contraseñas (con sal) y firmas digitales. El cifrado es bidireccional — el texto cifrado puede descifrarse de vuelta al texto original usando una clave. El cifrado se usa para confidencialidad. Usa hash cuando necesites verificar la integridad de los datos o almacenar contraseñas de forma segura; usa cifrado cuando necesites proteger datos que deben ser recuperables.
¿Qué es una colisión de hash?
A hash collision occurs when two different inputs produce the same hash output. Due to the pigeonhole principle, collisions are mathematically inevitable for any hash function (since there are infinitely many possible inputs but only a finite number of hash outputs). However, for secure hash functions like SHA-256, finding a collision requires an astronomical amount of computation (approximately 2^128 operations for SHA-256). For broken hash functions like MD5, collisions can be found in seconds on a modern computer.
¿Debería usar hash para almacenar contraseñas?
Yes, but not with a plain hash function. Passwords should be hashed using a specialized password hashing algorithm like bcrypt, scrypt, Argon2, or PBKDF2. These algorithms are deliberately slow (to resist brute-force attacks) and use a salt (to resist rainbow table attacks). Plain SHA-256 is too fast for password storage — an attacker with a modern GPU can try billions of SHA-256 hashes per second. bcrypt and Argon2 are designed to be slow, making brute-force attacks impractical.
What is the difference between SHA-256 and SHA-512?
SHA-256 produces a 256-bit (32-byte, 64-character hex) hash, while SHA-512 produces a 512-bit (64-byte, 128-character hex) hash. SHA-512 is not 'more secure' in any practical sense — both have the same theoretical security level against collision attacks. SHA-512 is actually faster than SHA-256 on 64-bit processors because it processes data in 64-bit chunks. Choose based on your system's requirements: SHA-256 for shorter output, SHA-512 for 64-bit optimized performance.
¿Es esta herramienta segura para datos sensibles?
Yes. All hashing happens locally in your browser using the Web Crypto API. Your input text is never uploaded, stored, or logged. You can verify this by checking your browser's DevTools Network tab — no network requests are made when you hash text. This makes the tool safe for hashing API keys, tokens, and other sensitive data.
¿Puedo usar esta herramienta para proyectos comerciales?
Yes. The tool is free for both personal and commercial use with no watermarks, no attribution required, and no usage limits. You retain full ownership of your data. There is no registration, no API key, and no subscription required.

Su privacidad es nuestra prioridad

Esta herramienta se ejecuta completamente en su navegador. Sus archivos no se suben a un servidor, no se almacenan ni se analizan.

  • No subimos, almacenamos ni analizamos sus archivos.
  • Todo lo que procesa permanece en su dispositivo.
  • No hay procesamiento del lado del servidor, ni almacenamiento en la nube, ni análisis.

Incluso si su conexión a internet se cae, sus archivos permanecen seguros.

También te podría gustar

Guias utiles

Publicidad