Free2BoxFree2Box

HMAC जनरेटर

SHA-256, SHA-384 या SHA-512 का उपयोग करके HMAC हस्ताक्षर उत्पन्न करें

संदेश
HMAC आउटपुट
HMAC हस्ताक्षर यहां दिखाई देगा

HMAC क्या है?

HMAC (हैश-आधारित संदेश प्रमाणीकरण कोड) एक गुप्त कुंजी को हैश फंक्शन के साथ मिलाकर डेटा की अखंडता और प्रामाणिकता की पुष्टि करता है।

उपयोग कैसे करें

1

अपने मान दर्ज करें

इनपुट फ़ील्ड में अपनी संख्याएँ या पैरामीटर भरें।

2

तुरंत परिणाम पाएँ

जैसे ही आप टाइप करते हैं परिणाम स्वचालित रूप से अपडेट होते हैं — कोई सबमिट बटन ज़रूरी नहीं।

3

कॉपी या सेव करें

परिणामों को क्लिपबोर्ड में कॉपी करें या अपने वर्कफ़्लो में उपयोग करें।

यह टूल क्यों उपयोग करें

100% मुफ़्त

कोई छिपी लागत नहीं, कोई प्रीमियम टियर नहीं — हर फ़ीचर मुफ़्त है।

कोई इंस्टॉलेशन नहीं

पूरी तरह से आपके ब्राउज़र में चलता है। कोई सॉफ़्टवेयर डाउनलोड या इंस्टॉल करने की ज़रूरत नहीं।

प्राइवेट और सुरक्षित

आपका डेटा कभी आपके डिवाइस से बाहर नहीं जाता। किसी भी सर्वर पर कुछ भी अपलोड नहीं होता।

मोबाइल पर काम करता है

पूरी तरह से रेस्पॉन्सिव — अपने फ़ोन, टैबलेट या डेस्कटॉप पर उपयोग करें।

HMAC: Hash-Based Message Authentication Codes

Key Takeaways

  • HMAC combines a cryptographic hash function with a secret key to provide both data integrity and authentication.
  • Unlike plain hashes, HMAC proves that the message was created by someone who knows the secret key — preventing tampering and forgery.
  • All HMAC generation is performed in your browser using the Web Crypto API — your keys and data remain private.

HMAC (Hash-based Message Authentication Code) is a mechanism for verifying both the integrity and authenticity of a message. It is used extensively in API authentication (AWS Signature V4), webhook verification (GitHub, Stripe), and secure communication protocols. HMAC is more secure than simple hash verification because it requires knowledge of a shared secret key.

HMAC-SHA256 is used to authenticate over 1 billion API requests per day across major cloud platforms.

Scale of Use

Key Concepts

1

How HMAC Works

HMAC processes the key through two rounds of hashing with different padding (ipad and opad), making it resistant to length extension attacks that affect plain hash functions.

2

HMAC vs. Plain Hash

A plain hash (SHA-256 of a message) can be computed by anyone. HMAC requires the secret key, so only authorized parties can generate a valid MAC. This provides authentication in addition to integrity.

3

Webhook Signature Verification

Services like GitHub and Stripe sign webhook payloads with HMAC-SHA256 using a shared secret. The receiver recomputes the HMAC and compares it with the signature header to verify authenticity.

4

Timing-Safe Comparison

When verifying HMAC signatures, always use constant-time comparison functions to prevent timing attacks that could leak information about the expected value byte by byte.

Pro Tips

Use HMAC-SHA256 as your default — it offers an excellent balance of security and performance for most applications.

Keep HMAC keys at least as long as the hash output (32 bytes for SHA-256) for maximum security.

Rotate HMAC keys periodically and support multiple active keys during transition periods.

Never log or expose HMAC keys in error messages, URLs, or client-side code.

All HMAC computation is performed entirely in your browser using the Web Crypto API. Your secret keys and message data are never transmitted to any external server.

अक्सर पूछे जाने वाले प्रश्न