Monu Tools

Генератор HMAC

Генеруйте HMAC для повідомлення та секретного ключа за допомогою SHA-1, SHA-256, SHA-384 чи SHA-512, у вашому браузері.

Як користуватися HMAC

  1. 01

    Оберіть алгоритм хешування.

  2. 02

    Введіть свій секретний ключ і повідомлення.

  3. 03

    Скопіюйте HMAC, показаний як шістнадцятковий дайджест.

Sign a message with a key

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.

What an HMAC proves

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.

Where HMAC shows up

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.

Choosing an algorithm

SHA-256 is the common default; SHA-384 and SHA-512 are stronger, while SHA-1 is legacy and best avoided for new systems.

Security note

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.

Поширені запитання

Що таке HMAC?

Хеш із ключем, що доводить, що повідомлення створене кимось, хто має секретний ключ, і не було змінене. Він широко використовується для підписання запитів API та вебхуків.

Чи надсилається мій секрет кудись?

Ні. HMAC обчислюється у вашому браузері за допомогою Web Crypto API, тож ключ і повідомлення ніколи не залишають ваш пристрій.

Який алгоритм використовувати?

SHA-256 це поширений варіант за замовчуванням. SHA-384 і SHA-512 сильніші; SHA-1 застарілий, і його краще уникати для нових систем.

Джерела

Вбудувати цей інструмент

Додайте цей інструмент на власний сайт. Скопіюйте фрагмент нижче; він оновлюється автоматично.

<iframe src="https://monu.tools/embed/uk/hmac-generator" width="100%" height="640" style="border:1px solid #e5e5e5;border-radius:12px;max-width:680px" loading="lazy" title="Monu Tools"></iframe>

Пов'язані інструменти