HMAC

Calculate HMAC instantly with the exact formula and a worked example.

HMAC

Hash: 1 MD5, 2 SHA-1, 3 SHA-256, 4 SHA-384, 5 SHA-512
Key lengthbytes
HMAC length
256bits
Calculate HMAC instantly with the exact formula and a worked example.
Algorithm
HMAC-SHA256
Hex characters
64
Block size
64bytes
Key handling
Zero-padded to block size

More about: HMAC

What it calculates

The “HMAC” calculator computes HMAC length in bits from 2 parameters: hash: 1 md5, 2 sha-1, 3 sha-256, 4 sha-384, 5 sha-512, key length (bytes).

Standard IT calculations for developers and sysadmins.

Example calculation

With parameters Hash: 1 MD5, 2 SHA-1, 3 SHA-256, 4 SHA-384, 5 SHA-512 = 3, Key length = 32 bytes the result is 256 bits.

How to use

  1. Enter hash: 1 md5, 2 sha-1, 3 sha-256, 4 sha-384, 5 sha-512 and key length — each field above is adjustable with a slider.
  2. HMAC length (bits) is calculated automatically as you type.
  3. Check the worked example below to see the formula applied to real numbers.
  4. Copy the result or bookmark this calculator.

Related calculators

FAQ

How is HMAC calculated?
The HMAC calculator computes HMAC length (in bits) from hash: 1 md5, 2 sha-1, 3 sha-256, 4 sha-384, 5 sha-512, key length. Enter your values above and the exact formula is applied instantly; a worked example with real numbers is shown below.
Is the HMAC calculator free?
Yes. It is completely free, needs no signup, runs entirely in your browser, and sends no data to any server.

More calculators in this category

Explore related free tools

Cosine SimilarityTF-IDFSilhouette ScoreCable Length (CAT5e/6)CSS Cubic BezierCSS Border RadiusColor Tint / ShadeLighten / DarkenServer Response TimeImage Dimension for WebSVG PathCaesar Cipher