Penghasil HMAC (Hash-based Message Authentication)
Hitung nilai autentikasi pesan berbasis hash (HMAC) dengan algoritma SHA-256, SHA-384, SHA-512, atau SHA-1 menggunakan kunci rahasia secara aman di browser Anda.
HMAC Generator
Output (hex)
Cara kerja
Masukkan data Anda
Isi nilai yang diperlukan, tempel teks Anda, atau unggah file yang ingin diproses.
Lihat hasil seketika
Sebagian besar alat diperbarui secara langsung saat Anda mengetik; beberapa menggunakan satu tombol tindakan.
Gunakan hasil Anda
Salin, unduh, atau bagikan hasil yang dihasilkan — Anda selalu memiliki kendali penuh atas data Anda.
Apa itu Penghasil HMAC (Hash-based Message Authentication)?
Compute a Hash-based Message Authentication Code (HMAC) for a message and secret key, using the browser's built-in Web Crypto API.
How to generate an HMAC
HMAC vs. a plain hash
A plain hash (like SHA-256) only proves a message wasn't altered, but anyone can compute it. An HMAC mixes in a secret key, so only someone who knows that key can produce or verify a matching code — proving both integrity and that the sender knew the secret.
How to use it
- Enter the message to authenticate.
- Enter the shared secret key.
- Pick SHA-256, SHA-384, or SHA-512, and copy the resulting hex digest.
Choosing an algorithm
SHA-256 is the most common default and is what most APIs expect (for example, AWS request signing and many webhook signature schemes). SHA-384 and SHA-512 produce longer digests for services that specifically require them.
Digest format
The tool signs the UTF-8 message with the UTF-8 secret through Web Crypto and returns lowercase hexadecimal for SHA-256, SHA-384, or SHA-512.
Secret handling notes
The secret key and message are used only in the browser Web Crypto call. Clear them before leaving a shared device or screen.
Pertanyaan yang Sering Diajukan (FAQ)
Is HMAC the same as encryption?
No. HMAC is one-way, like a hash — it authenticates a message but doesn't hide or encrypt its contents.
Is my secret key sent anywhere?
No. The HMAC is computed locally with the browser's Web Crypto API; the key and message never leave your device.
Which algorithm should I pick?
SHA-256 unless the service you're integrating with specifically documents SHA-384 or SHA-512.
Can I verify an HMAC with this tool?
Yes. Generate the HMAC from the same message, secret, and algorithm, then compare the hex digest with the expected value.
Alat Terkait
- TersediaLokal
Generator Kata Sandi Kuat & Frasa Sandi (Passphrase)
Buat kata sandi acak yang kuat atau frasa sandi yang mudah diingat dan aman.
- TersediaLokal
Penghasil Hash
Hitung hash MD5, SHA-1, SHA-256, SHA-384, SHA-512, dan CRC32 untuk teks dan file.
- TersediaLokal
Penampil & Penghapus Metadata EXIF Foto
Lihat informasi kamera dan hapus metadata EXIF serta lokasi GPS dari foto Anda.
- TersediaLokal
Generator Header Content Security Policy (CSP)
Susun kebijakan keamanan header CSP untuk melindungi situs web dari serangan XSS.
- TersediaLokal
Pendekode Sertifikat SSL / X.509
Dekode dan periksa informasi sertifikat TLS/SSL PEM, masa berlaku, dan SAN.
- TersediaLokal
Penganalisis Header Email
Analisis header email mentah untuk melacak rute hop, SPF, DKIM, dan DMARC.
- TersediaServer
Pemeriksa Kebocoran Kata Sandi
Periksa apakah kata sandi Anda pernah bocor dalam insiden kebocoran data.
- TersediaServer
Pemindai Header Keamanan Web
Pindai dan evaluasi header keamanan HTTP situs web Anda (HSTS, CSP, XFO).
- TersediaLokal
Generator & Pemeriksa Kunci SSH (Ed25519 & RSA)
Hasilkan pasangan kunci SSH (Ed25519 / RSA) aman atau periksa fingerprint kunci publik.
- TersediaLokal
Kalkulator Persentase Serbaguna
Hitung persentase dari suatu nilai, persentase kenaikan, penurunan, diskon, dan selisih.