Skip to main content

Hashing & Checksums

HMAC Digest Calculator

Calculate or verify a digest with HMAC. Enter the data, choose the digest options, then copy the calculated value.

Tool workspace

Your input stays in this browser.

Add the required input to continue.

Needs input

You can run the tool again after any change.

Options

Your result appears here

Calculate or verify a digest with HMAC. Enter the data, choose the digest options, then copy the calculated value.

This tool runs open-source code from CyberChef by GCHQ (Apache License 2.0). See open-source credits.

HMAC Digest Calculator uses HMAC for the supplied input. The operation returns a keyed authentication code for the supplied message and settings. The digest or checksum format is specific to HMAC Digest Calculator.

The operation returns a keyed authentication code for the supplied message and settings. The digest or checksum format is specific to HMAC Digest Calculator. This result runs in the browser for this catalog category. Processing runs in the browser.

A keyed MAC detects changes for parties sharing a secret; it does not provide confidentiality or non-repudiation.

Instructions

  1. Provide text or data for this tool.
  2. Use public test data only. This applies to HMAC Digest Calculator.
  3. Keep the key identical when reproducing a fixture. This applies to HMAC Digest Calculator.
  4. Compare the complete output using the same byte and text encoding. This applies to HMAC Digest Calculator.

Example

Input: Message "Test message" with public key bytes "00112233445566778899aabbccddeeff". Algorithm operation: HMAC Digest Calculator.

Settings: HMAC Digest Calculator: Enter the message as the configured byte input. Enter a key in the selected encoding. Select the documented hash, block cipher, or output encoding option.

Result: The operation returns a keyed authentication code for the supplied message and settings. The digest or checksum format is specific to HMAC Digest Calculator.

Limits

  • HMAC Digest Calculator: A MAC requires the verifier to possess the same secret key.
  • HMAC Digest Calculator: A MAC does not encrypt the message.
  • HMAC Digest Calculator: A valid MAC does not prove which authorized key holder created it.