ولّد HMAC لرسالة ومفتاح سري باستخدام SHA-1 أو SHA-256 أو SHA-384 أو SHA-512، داخل متصفحك.
كيفية استخدام HMAC
اختر خوارزمية تجزئة.
أدخل مفتاحك السري والرسالة.
انسخ HMAC المعروض كملخص سداسي عشري.
An HMAC generator that signs a message with a secret key using SHA-1, SHA-256, SHA-384 or SHA-512, and shows the result as a hex digest. Pick an algorithm, enter the key and the message, and copy the signature.
HMAC stands for hash-based message authentication code. It is a keyed hash: combining a secret key with the message proves two things at once, that the message was created by someone who holds the key, and that it has not been altered in transit.
The difference from a plain hash is the key. Anyone can compute a SHA-256 of a message, but only someone with the shared secret can produce the correct HMAC, which is what turns a checksum into proof of authenticity.
That is why it is everywhere in web infrastructure. Webhooks from services like Stripe, GitHub and Slack sign each request with an HMAC so your server can verify the call really came from them, and many APIs sign requests the same way.
SHA-256 is the common default; SHA-384 and SHA-512 are stronger, while SHA-1 is legacy and best avoided for new systems.
It runs locally with the Web Crypto API, so your key and message are never uploaded, which is important since the key is a secret.
الأسئلة الشائعة
تجزئة مفتاحية تثبت أن الرسالة أنشأها شخص يملك المفتاح السري وأنها لم تُعدَّل. يُستخدم على نطاق واسع لتوقيع طلبات API وخطافات الويب (webhooks).
لا. يُحسب HMAC في متصفحك باستخدام واجهة Web Crypto، لذا لا يغادر المفتاح والرسالة جهازك أبدا.
SHA-256 هي الخيار الافتراضي الشائع. أما SHA-384 و SHA-512 فأقوى؛ و SHA-1 قديمة ويُفضّل تجنبها في الأنظمة الجديدة.
ضمّن هذه الأداة
أضف هذه الأداة إلى موقعك الخاص. انسخ المقتطف أدناه، ويبقى محدّثاً تلقائياً.
<iframe src="https://monu.tools/embed/ar/hmac-generator" width="100%" height="640" style="border:1px solid #e5e5e5;border-radius:12px;max-width:680px" loading="lazy" title="Monu Tools"></iframe>أدوات ذات صلة
رمّز النص إلى Base64 أو فُكّ ترميز Base64 إلى نص. آمن مع UTF-8 واكتشاف تلقائي للاتجاه.
ترميز وفك ترميز عناوين URL ومكوّناتها بصيغة النسبة المئوية (percent-encoding)، بأمان مع UTF-8.
فُكّ ترميز رمز JSON Web Token لفحص رأسه وحمولته، مع أوقات انتهاء وإصدار بصيغة مقروءة. يعمل بالكامل داخل متصفحك، ولا تُرفع الرموز أبداً.
أنشئ تجزئات SHA-1 وSHA-256 وSHA-384 وSHA-512 لأي نص، مباشرة داخل متصفحك.