Generator Hash

Hasilkan hash MD5, SHA-1, SHA-256, SHA-384, dan SHA-512 dari teks apa pun. Menggunakan Web Crypto API native. 100% sisi klien, tanpa unggahan, tanpa pelacakan.

Iklan
Iklan

Buat hash tanpa mengunggah data Anda

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% pribadi
API Web Crypto native
Gratis selamanya

Cara menggunakan

  1. 1

    Masukkan Teks

    Ketik atau tempel teks yang ingin Anda hash ke dalam kotak input.

  2. 2

    Klik Hitung

    Klik 'Hitung Hash' untuk menghasilkan kelima hash sekaligus.

  3. 3

    Salin

    Gunakan tombol Salin di sebelah setiap hash untuk menyalinnya ke clipboard Anda.

Mengapa Menggunakan Generator Hash Ini?

Lima Algoritma dalam Satu Klik

Hasilkan hash MD5, SHA-1, SHA-256, SHA-384, dan SHA-512 secara bersamaan, sehingga Anda dapat membandingkan atau memilih algoritma yang dibutuhkan sistem Anda.

Web Crypto API Native

Hash SHA dihitung menggunakan `crypto.subtle.digest` bawaan browser, yang dipercepat perangkat keras dan diaudit.

Aktif/Nonaktifkan Huruf Besar

Beralih antara output hex huruf kecil dan huruf besar dengan satu klik untuk mencocokkan format yang diharapkan toolchain Anda.

Iklan

Understanding Cryptographic Hashes

Apa itu fungsi hash kriptografis?

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).

Iklan

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.

Iklan

Kasus Penggunaan Umum

Pemeriksaan Integritas Data

Verifikasi bahwa file atau pesan belum diubah dengan membandingkan hash-nya dengan nilai yang diketahui baik.

Pengalamatan Konten Gaya Git

Hasilkan hash SHA-1 atau SHA-256 untuk mengidentifikasi konten secara unik, mirip dengan cara Git menyimpan objek.

Integrasi Sistem Lama

Beberapa API dan protokol lama masih memerlukan hash MD5 atau SHA-1; alat ini menyediakannya tanpa menginstal perangkat lunak tambahan.

Pembelajaran & Debugging

Periksa dengan cepat hash dari input yang diketahui saat mempelajari kriptografi atau men-debug ketidakcocokan hash.

Bagaimana ini dibandingkan dengan generator hash lain?

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

FiturNovaToolsEMOCodeBrowser console
Privasi (tanpa unggah)100% lokalUnggah ke serverLokal
Keluarga MD5 + SHAAll 5SHA only (no MD5)
API Web Crypto nativeUnknown
Toggle huruf besarManual
Dukungan UTF-8Manual
Ramah mobileTerbatas
Berfungsi offlineSetelah halaman dimuat

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

Fakta penting tentang algoritma hash umum.

Algorithm Overview

MD5

Output 128-bit. RUSAK — jangan gunakan untuk keamanan. Hanya checksum lama.

Contoh:d41d8cd98f00b204e9800998ecf8427e
SHA-1

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

Contoh:da39a3ee5e6b4b0d3255bfef95601890afd80709
SHA-256

Output 256-bit. AMAN. Direkomendasikan untuk aplikasi baru.

Contoh:e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855
SHA-384

Output 384-bit. AMAN. Gunakan ketika output 384-bit diperlukan.

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

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

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

Output Sizes

MD5

16 bytes → 32 hex characters.

Contoh:098f6bcd4621d373cade4e832627b4f6
SHA-1

20 bytes → 40 hex characters.

Contoh:a94a8fe5ccb19ba61c4c0873d391e987982fbbd3
SHA-256

32 bytes → 64 hex characters.

Contoh:9f86d081884c7d659a2feaa0c55ad015a3bf4f1b2b0b822cd15d6c15b0f00a08
SHA-512

64 bytes → 128 hex characters.

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

Kasus Penggunaan

Integrity check

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

Contoh:sha256sum file.zip
Password storage

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

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

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

Contoh:git: SHA-1 of blob
Legacy checksums

MD5 or SHA-1, only for backward compatibility.

Contoh:md5sum legacy.tar.gz

Pertanyaan yang sering diajukan

Algoritma hash apa saja yang didukung?
MD5, SHA-1, SHA-256, SHA-384, dan SHA-512. SHA-256 dan SHA-512 adalah pilihan yang direkomendasikan untuk penggunaan terkait keamanan apa pun. MD5 dan SHA-1 disediakan hanya untuk kompatibilitas lama.
Apakah MD5 masih aman digunakan?
Tidak. MD5 telah rusak secara kriptografis dan tidak boleh digunakan untuk penyimpanan kata sandi, tanda tangan digital, atau tujuan sensitif keamanan apa pun. Ini disertakan di sini hanya untuk verifikasi checksum sistem lama.
Bagaimana hash SHA dihitung?
SHA-1, SHA-256, SHA-384, dan SHA-512 dihitung menggunakan Web Crypto API native browser (`crypto.subtle.digest`), yang cepat dan aman secara kriptografis.
Apakah saya bisa meng-hash file?
Alat ini hanya meng-hash teks. Input dikodekan sebagai UTF-8 sebelum hashing, sehingga berfungsi dengan benar dengan karakter internasional dan emoji.
Apa perbedaan antara hashing dan enkripsi?
Hashing adalah satu arah — Anda tidak dapat memulihkan teks asli dari hash. Enkripsi adalah dua arah — ciphertext dapat didekripsi kembali ke aslinya dengan kunci. Gunakan hashing untuk pemeriksaan integritas dan penyimpanan kata sandi; gunakan enkripsi untuk kerahasiaan.
Algoritma hash apa yang didukung?
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.
Apakah MD5 masih aman digunakan?
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.
Bagaimana hash SHA dihitung?
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.
Bisakah saya meng-hash file?
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).
Apa perbedaan antara hashing dan enkripsi?
Hashing bersifat satu arah — Anda tidak dapat memulihkan teks asli dari hash. Input yang sama selalu menghasilkan hash yang sama, tetapi input yang berbeda dapat (secara teoritis) menghasilkan hash yang sama, yang disebut tabrakan. Untuk algoritma hash kriptografis yang baik seperti SHA-256, probabilitas tabrakan sangat rendah.
Apa itu kolisi 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.
Haruskah saya menggunakan hashing untuk penyimpanan kata sandi?
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.
Apa perbedaan antara SHA-256 dan 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.
Apakah alat ini aman untuk data sensitif?
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.
Bisakah saya menggunakan alat ini untuk proyek komersial?
Ya. Alat ini gratis untuk penggunaan pribadi dan komersial tanpa watermark, tanpa atribusi yang diperlukan, dan tanpa batasan penggunaan. Anda mempertahankan kepemilikan penuh atas gambar yang diproses. Model AI yang mendasari (MediaPipe) dilisensikan oleh Google untuk penggunaan komersial. Tidak ada pendaftaran, tidak ada API key, dan tidak ada langganan yang diperlukan.

Privasi Anda Adalah Prioritas Kami

Alat ini berjalan sepenuhnya di browser Anda. File Anda tidak diunggah ke server, tidak disimpan, dan tidak dianalisis.

  • Kami tidak mengunggah, menyimpan, atau menganalisis file Anda.
  • Semua yang Anda proses tetap di perangkat Anda.
  • Tidak ada pemrosesan sisi server, penyimpanan cloud, atau analisis.

Bahkan jika koneksi internet Anda terputus, file Anda tetap aman.

Anda mungkin juga suka

Panduan terkait

Iklan