Skip to content

HMAC 生成器

为消息和密钥生成带密钥哈希 HMAC(SHA-1/256/384/512)。通过 Web Crypto 完全在浏览器中运行,可通过链接分享你的精确输入。

Encoders & Crypto
cosmodev ~/tools/hmac-generator-
-

通过 SubtleCrypto 在本地计算 — 你的消息和密钥绝不会离开你的设备。需要安全上下文(https 或 localhost)。

Send to AI
Write a Python `hmac.compare_digest` verifier for HMAC-SHA-256. Read the secret from an environment variable - never hardcode it. Test vector - message: ``, expected MAC (hex): ``.