ScholarGate
助手
Machine learningMessage authentication code

HMAC

HMAC 的工作原理是将密钥以特定方式嵌入哈希计算中,以防止攻击者伪造认证码。HMAC 不仅仅是将密钥与消息连接起来然后进行哈希,而是使用两次嵌套的哈希运算,并结合了由密钥派生的填充值 (ipad 和 opad)。这种双重哈希设计确保即使攻击者能够找到哈希碰撞,也无法在不知道密钥的情况下伪造有效的 HMAC。

在 MethodMind 中打开即将推出视频即将推出Download slides

阅读完整方法

仅限会员

使用免费账户登录即可阅读本节。

登录

Method map

The neighbourhood of related methods — select a node to explore.

来源

  1. Krawczyk, H., Bellare, M., & Crechanko, R. (1997). HMAC: Keyed-Hashing for Message Authentication. RFC 2104. link
  2. Bellare, M., Canetti, R., & Krawczyk, H. (1996). Keying hash functions for message authentication. In Advances in Cryptology - CRYPTO 1996, LNCS 1109, pp. 1-15. DOI: 10.1007/3-540-68697-5_1

如何引用本页

ScholarGate. (2026, June 3). Hash-Based Message Authentication Code. ScholarGate. https://scholargate.app/zh/cryptography/hmac

Which method?

Set this method beside its closest kin and read them side by side — the library lays the books on the table; the choice is yours.

Compare side by side

被引用于

ScholarGateHMAC (Hash-Based Message Authentication Code). 于 2026-06-15 检索自 https://scholargate.app/zh/cryptography/hmac · 数据集: https://doi.org/10.5281/zenodo.20539026