Hash Generator

Hash Generator

คำนวณแฮช MD5, SHA-1, SHA-256, SHA-384, SHA-512 และ CRC32 จากข้อความหรือไฟล์โดยตรงในเบราว์เซอร์ของคุณ ไม่มีการอัปโหลดใดๆ

ไม่ การแฮชทั้งหมดเกิดขึ้นในเบราว์เซอร์ของคุณทั้งหมดผ่าน JavaScript และ Web Crypto API ไม่มีการส่งคำขอเครือข่ายเมื่อคุณป้อนข้อความหรือเลือกไฟล์ คุณสามารถตรวจสอบได้ใน Network tab ของเบราว์เซอร์

สำหรับความสมบูรณ์ของไฟล์ (เช็คซัม) ใช้ MD5 หรือ SHA-256 — ทั้งสองเหมาะสำหรับการใช้งานที่ไม่ใช่เรื่องความปลอดภัย สำหรับความปลอดภัย (แฮชรหัสผ่าน ลายเซ็น) ใช้ SHA-256 หรือ SHA-512 อย่าใช้ MD5 หรือ SHA-1 (ทั้งสองถูกทำลายความทนทานต่อการชน) CRC32 มีประโยชน์เฉพาะสำหรับการตรวจจับข้อมูลเสียโดยบังเอิญ ไม่ใช่สำหรับความปลอดภัย

0 ตัวอักษร · 0 ไบต์
อัลกอริทึม
|

เคล็ดลับ: แฮชคำนวณสดขณะพิมพ์ ยกเลิกการเลือกอัลกอริทึมที่ไม่ต้องการเพื่อเร่งการแฮชไฟล์

ทำไมต้อง Hash Generator?

เร็ว เป็นส่วนตัว และครอบคลุมอัลกอริทึมแฮชทั่วไปทั้งหมด

ความเป็นส่วนตัวตั้งแต่การออกแบบ

การแฮชทั้งหมดเกิดขึ้นในเบราว์เซอร์ของคุณ ข้อความและไฟล์ของคุณไม่เคยถูกส่ง เก็บ หรือบันทึกที่ใด

หกอัลกอริทึมพร้อมกัน

MD5, SHA-1, SHA-256, SHA-384, SHA-512 และ CRC32 — ดูทั้งหมดพร้อมกัน หรือเลือกเฉพาะที่ต้องการ

การแฮชไฟล์

วางไฟล์ใดๆ (รวมถึงไฟล์หลาย GB) และรับแฮชทั้งหมดพร้อมแถบความคืบหน้าสด การอ่านเป็นส่วนๆ ช่วยให้หน่วยความจำต่ำ

25 ภาษา

มีให้ใช้งานใน 25 ภาษาพร้อมการตรวจจับเบราว์เซอร์อัตโนมัติ รองรับ RTL สำหรับภาษาอาหรับ เปอร์เซีย และอูรดู

ผลลัพธ์สด

แฮชอัปเดตขณะพิมพ์ (พร้อม debounce สั้นๆ) คัดลอกคลิกเดียวสำหรับแต่ละผลลัพธ์ สลับตัวพิมพ์ใหญ่/เล็ก

Web Crypto API

ใช้ Web Crypto API ของเบราว์เซอร์สำหรับแฮช SHA — การใช้งานเดียวกันกับที่เบราว์เซอร์ใช้สำหรับ TLS และ subresource integrity

How the hash generator works

Web Crypto API for SHA family, streaming for large files.

  1. 1

    Drop a file or paste text

    For text input we encode it to UTF-8 bytes via TextEncoder. For files, we read them with File.arrayBuffer for small files or stream them through TransformStream for files larger than ~100 MB.

  2. 2

    Web Crypto handles the math

    crypto.subtle.digest('SHA-256', bytes) computes the hash using the browser's hardware-accelerated implementation. This is the same algorithm OpenSSL uses, just run inside the V8 / JavaScriptCore sandbox. SHA-1, SHA-384, SHA-512 work the same way.

  3. 3

    MD5 and CRC32 via WebAssembly

    MD5 and CRC32 aren't in Web Crypto (because both are cryptographically broken or not cryptographic). We ship tiny WASM implementations (~5 KB each) that compute them with the same streaming pattern.

  4. 4

    Display all 6 hashes

    Results are shown in hex format with a one-click copy button next to each. We also offer Base64 output for the SHA family — common when comparing against AWS S3 ETags or HTTP Content-Digest headers.

When to reach for which hash

Hashing has many uses — choose the right algorithm for the job.

Verifying a downloaded ISO

Use SHA-256 against the publisher's checksum. If even one byte was tampered with, the digests differ. MD5 and SHA-1 are fine for accidental corruption but do not use them against an attacker.

Deduplicating files

Hash a set of photos with SHA-1 (or even MD5 if speed matters more than collision resistance). Identical hashes mean identical bytes — useful for cleaning duplicate uploads.

Generating ETag values

AWS S3 uses MD5 for single-part objects and a different scheme for multipart. iKit gives you the raw MD5 instantly, so you can verify whether your local file matches what S3 has.

Confirming a backup

Hash the original and the backup with SHA-256 separately, compare the two strings. Same hash = identical content. Different hash = the backup is corrupted or out of date.

Why local hashing matters

Some online hashers upload your file just to compute a checksum — exactly the wrong way around for a privacy-sensitive operation. iKit's hash generator computes everything in the browser using Web Crypto, so even confidential or private files are hashed without ever leaving your machine.

  • Hardware-accelerated SHA via Web Crypto API.
  • Streams large files in 64 KB chunks — no upload, no memory blow-up.
  • No file metadata, no IP-linked log, no signup.

คู่มือที่เกี่ยวข้อง

บทความเชิงลึกและการเปรียบเทียบเครื่องมือจากบล็อก iKit

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

ข้อมูลที่ป้อนของฉันถูกส่งไปยังเซิร์ฟเวอร์หรือไม่?

ไม่ การแฮชทั้งหมดเกิดขึ้นในเบราว์เซอร์ของคุณทั้งหมดผ่าน JavaScript และ Web Crypto API ไม่มีการส่งคำขอเครือข่ายเมื่อคุณป้อนข้อความหรือเลือกไฟล์ คุณสามารถตรวจสอบได้ใน Network tab ของเบราว์เซอร์

ฉันควรใช้อัลกอริทึมใด?

สำหรับความสมบูรณ์ของไฟล์ (เช็คซัม) ใช้ MD5 หรือ SHA-256 — ทั้งสองเหมาะสำหรับการใช้งานที่ไม่ใช่เรื่องความปลอดภัย สำหรับความปลอดภัย (แฮชรหัสผ่าน ลายเซ็น) ใช้ SHA-256 หรือ SHA-512 อย่าใช้ MD5 หรือ SHA-1 (ทั้งสองถูกทำลายความทนทานต่อการชน) CRC32 มีประโยชน์เฉพาะสำหรับการตรวจจับข้อมูลเสียโดยบังเอิญ ไม่ใช่สำหรับความปลอดภัย

MD5 และ SHA-1 ใช้งานได้ปลอดภัยหรือไม่?

สำหรับเช็คซัมไฟล์และการตรวจสอบความสมบูรณ์ต่อการเสียหายโดยบังเอิญ ใช่ — MD5 และ SHA-1 ยังคงใช้กันทั่วไป (เช่น ในหน้าดาวน์โหลด) สำหรับวัตถุประสงค์ที่สำคัญต่อความปลอดภัย (รหัสผ่าน ลายเซ็น ใบรับรอง) ไม่ — ทั้งสองมีการโจมตีการชนที่รู้จัก ใช้ SHA-256 หรือสูงกว่าสำหรับสิ่งที่ละเอียดอ่อนด้านความปลอดภัย

ฉันสามารถแฮชไฟล์ขนาดใหญ่ได้หรือไม่?

ได้ ไฟล์จะถูกอ่านเป็นส่วนๆ ละ 2 MB พร้อมความคืบหน้าสด MD5 และ CRC32 ประมวลผลแบบเพิ่มเต็มที่ (หน่วยความจำคงที่) แฮช SHA ต้องการโหลดไฟล์เข้าหน่วยความจำเนื่องจากข้อจำกัดของ Web Crypto API ดังนั้นไฟล์ที่ใหญ่กว่า ~2 GB อาจใช้ไม่ได้บนเบราว์เซอร์ทั้งหมด

ทำไม MD5 และ SHA-256 จึงให้ผลลัพธ์ความยาวต่างกัน?

แต่ละอัลกอริทึมให้ digest ขนาดคงที่: MD5 = 128 bits (32 hex), SHA-1 = 160 bits (40 hex), SHA-256 = 256 bits (64 hex), SHA-384 = 384 bits (96 hex), SHA-512 = 512 bits (128 hex), CRC32 = 32 bits (8 hex)