Генерируйте HMAC для сообщения и секретного ключа с SHA-1, SHA-256, SHA-384 или SHA-512 в браузере.
Как использовать HMAC
Выберите алгоритм хеширования.
Введите секретный ключ и сообщение.
Скопируйте HMAC в виде hex-дайджеста.
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-запросов и вебхуков.
Нет. HMAC вычисляется в браузере с Web Crypto API, поэтому ключ и сообщение никогда не покидают устройство.
SHA-256 -- распространённый вариант по умолчанию. SHA-384 и SHA-512 надёжнее; SHA-1 устарел и не рекомендуется для новых систем.
Встроить этот инструмент
Добавьте этот инструмент на свой сайт. Скопируйте фрагмент ниже, он обновляется автоматически.
<iframe src="https://monu.tools/embed/ru/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 обратно в текст. Поддерживается URL-безопасный режим.
Кодируйте и декодируйте URL и компоненты URL с поддержкой UTF-8.
Декодируйте и проверяйте токены JSON Web Token. Просматривайте заголовок, полезную нагрузку и информацию о сроке действия.
Вычисляйте хеши SHA-1, SHA-256, SHA-384 и SHA-512 из текста или файла. Поддерживается HMAC. Всё выполняется локально в браузере.