Input
Enter the message and the secret key. Powers TOTP authenticator codes.
The authentication tag appears below in hexadecimal.
Compute HMAC-SHA1 for a message and secret key in your browser. HMAC-SHA1 produces a 160-bit authentication tag from any message.
Enter the message and the secret key. Powers TOTP authenticator codes.
The authentication tag appears below in hexadecimal.
HMAC-SHA1 is the engine inside TOTP, the time-based one-time passwords from RFC 6238 used by authenticator apps. The shared secret and the current 30-second counter are HMACed, then truncated to 6-8 digits. Billions of logins a day rely on this construction.
Like HMAC-MD5, HMAC-SHA1 has no practical forgery attack despite SHA-1's collision breaks, because HMAC does not rely on collision resistance the same way. Still, 160-bit tags are legacy strength; HMAC-SHA256 is the modern default for new protocols.