WebToolset Logo
WebToolset
All Categories
Categories
Developer & Data formatters
Security, Crypto & Encoding
String & Text Manipulation
Image Tools
Math, Time & Network
© 2025 WebToolset
Home
Security, Crypto & Encoding
HMAC Generator
Logo
Security, Crypto & Encoding/HMAC Generator

HMAC Generator — Hash-based Message Authentication Code

Generate HMAC using SHA256, SHA512, MD5, and more. Securely sign messages with a secret key.

What is HMAC Generator?

HMAC (Hash-based Message Authentication Code) is a specific type of message authentication code (MAC) involving a cryptographic hash function and a secret cryptographic key. It may be used to simultaneously verify both the data integrity and the authentication of a message.

Input Formats

  • Message text
  • Secret key
  • Algorithm selection

Output Results

  • HMAC string

Key Features

Security: Verifies both integrity and authenticity
Versatile: Supports multiple hash algorithms
Privacy: 100% Client-side processing
Standard: Compliant with RFC 2104
Shareable LinksShare generated HMAC. (Limit: 1KB)

Who is this for?

API Authentication

Signing API requests to verify sender identity.

API signatureRequest signing

How to Use

1

Enter your message.

2

Enter your secret key.

3

Select the hash algorithm.

4

Copy the generated HMAC.

Examples

Input

Message: Hello, Key: Secret

Output

HMAC-SHA256: ...

Common Errors

  • Using weak keys
  • Mismatched algorithms

Code Examples

Node.js

const crypto = require('crypto');
const hmac = crypto.createHmac('sha256', 'Secret');
hmac.update('Hello');
console.log(hmac.digest('hex'));

Frequently Asked Questions

Is the key sent to the server?
No, everything is processed locally in your browser.