Skip to main content
DevTools24

HMAC 生成器

使用 SHA-256、SHA-512 和其他算法生成 HMAC(基于哈希的消息认证码)签名。

HMAC (Hash-based Message Authentication Code) is used to verify both data integrity and authenticity.

Common uses: API authentication, webhook signatures, JWT signing, secure cookies.

HMAC 认证 - 技术详情

HMAC 将加密哈希函数与密钥结合,以验证消息的完整性和真实性。它常用于 API 认证、Webhook 和安全通信。

命令行替代方案

// HMAC-SHA256 example\nHMAC(key, message) = hash(key XOR opad || hash(key XOR ipad || message))\n\n// Used in: AWS Signature, GitHub webhooks, Stripe