logo
GeekFormat

แฮช SHA-256

อินพุต0 อักขระ · 0 ไบต์
示例:
Hash ทั้งหมด (แสดงเคียงกัน)
คำนวณด้วย Web Crypto API
MD5
32 hex
SHA-1
40 hex
SHA-256
64 hex
SHA-384
96 hex
SHA-512
128 hex

เครื่องมือสร้าง SHA-256 ออนไลน์ฟรีสำหรับข้อความ ไฟล์ และ batch คำนวณ MD5, SHA-1, SHA-256, SHA-384 และ SHA-512 พร้อมกัน สลับ Hex/Base64 ลากไฟล์มาวาง และตรวจสอบกับ hash ที่รู้จัก — ทั้งหมดในเบราว์เซอร์ ไม่อัปโหลด.

คำแนะนำที่เกี่ยวข้อง

กรณีการใช้งาน

  • Comparar una descarga con el checksum SHA-256 oficial.
  • Crear digests para firmas API como AWS SigV4, OAuth o JWT HS256.
  • Comprobar integridad antes y después de transferencias o backups.
  • Hashear líneas de configuración o fixtures en lote.
  • Depurar una firma webhook HMAC-SHA256.
  • Comparar SHA-256 con MD5, SHA-1, SHA-384 y SHA-512.

คุณสมบัติ

  • Texto y archivos: genera hashes SHA-256 para cadenas, archivos locales y lotes.
  • 5 algoritmos en paralelo: MD5, SHA-1, SHA-256, SHA-384 y SHA-512.
  • Salida Hex o Base64 para firmas API, JWT y sistemas de almacenamiento.
  • Arrastra archivos al navegador y calcula el hash sin subirlos.
  • Pega un hash esperado y ve al instante si coincide.
  • SHA-256 por lotes: un digest por línea.
  • Útil para HMAC-SHA256, AWS SigV4, JWT HS256 y webhooks.
  • Web Crypto API: cálculo nativo del navegador sin envío al servidor.

วิธีการใช้งาน

  1. Elige Text, File, Batch o HMAC-SHA256.
  2. Escribe texto o arrastra un archivo.
  3. Activa Multi-Algorithm si lo necesitas.
  4. Elige Hex o Base64 y copia el digest.

คำถามที่พบบ่อย

¿Qué es SHA-256 y cómo funciona?

SHA-256 es una función hash criptográfica de SHA-2. Procesa la entrada por bloques y produce siempre un digest fijo de 256 bits. No se conocen ataques prácticos contra SHA-256 completo.

¿Puedo verificar una descarga con SHA-256?

Sí. Calcula el SHA-256 del archivo descargado y compáralo exactamente con el valor publicado. Cualquier diferencia indica archivo distinto, dañado o modificado.

¿Por qué usar SHA-256 en vez de MD5?

MD5 tiene ataques de colisión conocidos. SHA-256 tiene un digest más largo y es la opción estándar para integridad y firmas modernas.

¿SHA-256 se puede descifrar?

No. SHA-256 es una función unidireccional. Solo se puede intentar buscar la entrada con diccionarios, fuerza bruta o tablas precalculadas.

¿SHA-256 sirve para contraseñas?

No. Es demasiado rápido. Para contraseñas usa Argon2id, scrypt o bcrypt con salt.

¿SHA-256 ayuda en firmas API?

Sí. Muchos esquemas usan HMAC-SHA256, incluidos AWS SigV4, webhooks y JWT HS256.

¿Qué diferencia hay con SHA-3?

SHA-256 pertenece a SHA-2; SHA-3 se basa en Keccak y una construcción sponge. SHA-256 está mucho más desplegado hoy.

¿Por qué Bitcoin usa SHA-256?

Bitcoin lo usa en Proof of Work, block headers, transaction IDs y estructuras Merkle porque aporta longitud fija, determinismo y detección de cambios.

¿Mis datos se suben?

No. Todo se ejecuta localmente en el navegador.

¿Cuál es el SHA-256 de la cadena vacía?

`e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855`.

SHA-256 Hash คืออะไร?

SHA-256 es una función hash criptográfica de la familia SHA-2, estandarizada por NIST. Cualquier entrada se convierte en un digest fijo de 256 bits.

Procesa bloques de 512 bits durante 64 rondas; un pequeño cambio en la entrada cambia por completo la salida.

No se conocen ataques prácticos contra SHA-256 completo, por eso se usa en TLS, archivos, Bitcoin, Git y HMAC.

Para contraseñas, SHA-256 es demasiado rápido. Usa Argon2id, scrypt o bcrypt con salt.

Para nuevos checksums y firmas, SHA-256 suele ser la opción estándar.

Code Examples

SHA-256 of the empty string

text

The empty string has a single, well-known SHA-256 digest. You will see this constant in logs, caches, CDNs and storage systems as the fingerprint of empty content.

Input  : (empty)
SHA-256: e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855

SHA-256 of "hello"

text

Classic test vector for SHA-256 implementations. Many cryptographic libraries ship a self-test that hashes this exact string.

Input  : hello
SHA-256: 2cf24dba5fb0a30e26e83b2ac5b9e29e1b161e5c1fa7425e73043362938b9824

SHA-256 of "hello world"

text

The most commonly cited SHA-256 example on the web. Used in tutorials, RFCs and Wikipedia to illustrate the algorithm's output.

Input  : hello world
SHA-256: b94d27b9934d3e08a52e52d7da7dabfac484efe37a5380ee9088f7ace2efcde9

Compute SHA-256 in JavaScript (Web Crypto API)

javascript

Production-grade SHA-256 in 4 lines using the browser's native Web Crypto API. No external libraries, no uploads, audited native implementation.

const buf = new TextEncoder().encode('hello')
const hash = await crypto.subtle.digest('SHA-256', buf)
const hex = [...new Uint8Array(hash)]
  .map(b => b.toString(16).padStart(2, '0'))
  .join('')
console.log(hex)
// 2cf24dba5fb0a30e26e83b2ac5b9e29e1b161e5c1fa7425e73043362938b9824

Compute SHA-256 in Python

python

Standard-library SHA-256 hash with hex output. Works in Python 3.6+.

import hashlib
print(hashlib.sha256(b'hello').hexdigest())
# 2cf24dba5fb0a30e26e83b2ac5b9e29e1b161e5c1fa7425e73043362938b9824

Compute SHA-256 at the command line

bash

Verify a downloaded file with one shell command. macOS and Linux ship sha256sum (or shasum -a 256 on macOS) by default.

$ echo -n 'hello' | sha256sum
2cf24dba5fb0a30e26e83b2ac5b9e29e1b161e5c1fa7425e73043362938b9824  -

$ sha256sum installer.dmg
e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855  installer.dmg

Supported Video Formats

FormatMIMEBrowser supportWhen to use
MD5128-bit (32 hex)UniversalRoto frente a colisiones; úsalo solo para checksums no críticos o compatibilidad legacy.
SHA-1160-bit (40 hex)UniversalObsoleto para seguridad. Usa SHA-256 en sistemas nuevos.
SHA-256256-bit (64 hex)Web Crypto APIEstándar moderno para TLS, integridad de archivos, Bitcoin, Git, JWT HS256 y HMAC-SHA256.
SHA-384384-bit (96 hex)Web Crypto APIVariante SHA-2 de 384 bits para requisitos específicos.
SHA-512512-bit (128 hex)Web Crypto APIVariante SHA-2 de 512 bits, a veces más rápida en CPU de 64 bits y con digest más largo.
SHA-3 / Keccak256/512-bitLimitedSHA-3/Keccak usa una construcción sponge y sirve cuando importa la agilidad criptográfica.

Output Example

A real MP3 file encoded to a Data URI — copy-ready:

Input: hello world
SHA-256: b94d27b9934d3e08a52e52d7da7dabfac484efe37a5380ee9088f7ace2efcde9

Input: (empty)
SHA-256: e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855

Privacy & Security

Este generador SHA-256 funciona completamente en el navegador con Web Crypto API. Textos, archivos y lotes se procesan localmente y no se envían a ningún servidor.

Authoritative References

เข้ารหัสและถอดรหัส AESแปลงเสียงเป็น Base64การเข้ารหัส Base32การเข้ารหัส Base58ถอดรหัส Base64 หลายรายการเข้ารหัส Base64 หลายรายการล้างอักขระ Base64แปลง Data URLถอดรหัส Base64เปรียบเทียบ Base64การเข้ารหัส Base64จัดรูปแบบ Base64ตัวแปลง Base64-Hexรวม Base64 หลายบรรทัดMIME Base64จัดการ Padding Base64แยก Base64 หลายบรรทัดสถิติความยาว Base64Base64 เป็นเสียงBase64 เป็นไฟล์Base64 เป็น HexBase64 เป็นรูปภาพBase64 เป็นข้อความBase64 เป็นวิดีโอURL Safe Base64ตรวจสอบรูปแบบ Base64ตัวแปลงรหัส Base85การแปลงเลขฐานสองรหัสซีซาร์ (Caesar Cipher)เข้ารหัสและถอดรหัส DESเครื่องมือคำนวณแฮชไฟล์แปลงไฟล์เป็น Base64เลขฐานสิบหก (Hex)สร้างและตรวจสอบ HMACเข้ารหัสและถอดรหัส HTMLแปลงรูปภาพเป็น Base64ทำให้โค้ด Java อ่านยาก (Obfuscate)ทำให้โค้ด JS อ่านยาก (Obfuscate)ถอดรหัส ตรวจสอบ และสร้าง JWTแฮช MD5ตัวแปลงรหัสมอร์สเครื่องมือสร้างคีย์ PBKDF2ทำให้โค้ด PHP อ่านยาก (Obfuscate)ทำให้โค้ด Python อ่านยาก (Obfuscate)เครื่องมือสร้าง SHA-1 แฮชแฮช SHA-256เครื่องมือสร้าง SHA-512 แฮชเปรียบเทียบข้อความอย่างปลอดภัยแปลงข้อความเป็น Base64ตัวแปลงรหัส Unicodeการเข้ารหัส URLวิดีโอเป็น Base64