Luo HMAC viestille ja salaiselle avaimelle kayttaen SHA-1:ta, SHA-256:ta, SHA-384:ta tai SHA-512:ta, selaimessasi.
Nain kaytat tyokalua HMAC
Valitse hash-algoritmi.
Anna salainen avaimesi ja viesti.
Kopioi HMAC, naytettyna heksatiivisteena.
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.
Usein kysytyt kysymykset
Avaimellinen tiiviste, joka todistaa, etta viestin loi joku salaista avainta hallitseva ja ettei sita muutettu. Sita kaytetaan laajalti rajapintapyyntojen allekirjoitukseen ja webhookeihin.
Ei. HMAC lasketaan selaimessasi Web Crypto API:lla, joten avain ja viesti eivat koskaan poistu laitteeltasi.
SHA-256 on yleinen oletus. SHA-384 ja SHA-512 ovat vahvempia; SHA-1 on vanha ja paras valttaa uusissa jarjestelmissa.
Upota tämä työkalu
Lisää tämä työkalu omalle verkkosivustollesi. Kopioi alla oleva koodinpätkä, niin se pysyy ajan tasalla automaattisesti.
<iframe src="https://monu.tools/embed/fi/hmac-generator" width="100%" height="640" style="border:1px solid #e5e5e5;border-radius:12px;max-width:680px" loading="lazy" title="Monu Tools"></iframe>Liittyvat tyokalut
Koodaa teksti Base64-muotoon tai pura Base64 takaisin tekstiksi. UTF-8-turvallinen automaattisella suunnan tunnistuksella.
Prosenttikoodaa ja pura URL-osoitteita ja URL-komponentteja, UTF-8-turvallisesti.
Pura JSON Web Token tarkastellaksesi sen otsaketta ja hyotykuormaa, luettavilla vanhenemis- ja myontamisajoilla. Toimii kokonaan selaimessasi; tokeneita ei koskaan ladata.
Luo SHA-1-, SHA-256-, SHA-384- ja SHA-512-tiivisteita mista tahansa tekstista suoraan selaimessasi.