encyclopegia.org

HMAC

In cryptography, an HMAC (sometimes expanded as either keyed-hash message authentication code or hash-based message authentication code) is a specific type of message authentication code (MAC) involving a cryptographic hash function and a secret cryptographic key. As with any MAC, it may be used to simultaneously verify both the data integrity and authenticity of a message. An HMAC is a type of keyed hash function that can also be used in a key derivation scheme or a key stretching scheme. HMAC can provide authentication using a shared secret instead of using digital signatures with asymmetric cryptography. It trades off the need for a complex public key infrastructure by delegating the key exchange to the communicating parties, who are responsible for establishing and using a trusted channel to agree on the key prior to communication.

In cryptography, an HMAC (sometimes expanded as either keyed-hash message authentication code or hash-based message authentication code) is a specific type of message authentication code (MAC) involving a cryptographic hash function and a secret cryptographic key. As with any MAC, it may be used to simultaneously verify both the data integrity and authenticity of a message. An HMAC is a type of keyed hash function that can also be used in a key derivation scheme or a key stretching scheme. HMAC can provide authentication using a shared secret instead of using digital signatures with asymmetric cryptography. It trades off the need for a complex public key infrastructure by delegating the key exchange to the communicating parties, who are responsible for establishing and using a trusted channel to agree on the key prior to communication. ==Definition== This definition is taken from RFC 2104: \begin{align} \operatorname{HMAC}(K, m) &= \operatorname{H}\Bigl(\bigl(K' \oplus opad\bigr) \parallel \operatorname{H} \bigl(\left(K' \oplus ipad\right) \parallel m\bigr)\Bigr) \\ K' &= \begin{cases} \operatorname{H}\left(K\right) & \text{if}\ K\text{ is larger than block size} \\ K & \text{otherwise} \end{cases} \end{align} where \operatorname{H} is a cryptographic hash function. m is the message to be authenticated. K is the secret key. K' is a block-sized key derived from the secret key, K; either by padding to the right with 0s up to the block size, or by hashing down to less than or equal to the block size first and then padding to the right with zeros. \parallel denotes concatenation. \oplus denotes bitwise exclusive or (XOR). opad is the block-sized outer padding, consisting of repeated bytes valued 0x5c. ipad is the block-sized inner padding, consisting of repeated bytes valued 0x36. ==Implementation== The following pseudocode demonstrates how HMAC may be implemented. The block size is 512 bits (64 bytes) when using one of the following hash functions: SHA-1, MD5, RIPEMD-128. function hmac is input: key: Bytes // Array of bytes message: Bytes // Array of bytes to be hashed hash: Function // The hash function to use (e.g. SHA-1) blockSize: Integer // The block size of the hash function (e.g. 64 bytes for SHA-1) // Compute the block sized key block_sized_key = computeBlockSizedKey(key, hash, blockSize) o_key_pad ← block_sized_key xor [0x5c blockSize] // Outer padded key i_key_pad ← block_sized_key xor [0x36 blockSize] // Inner padded key return hash(o_key_pad ∥ hash(i_key_pad ∥ message)) function computeBlockSizedKey is input: key: Bytes // Array of bytes hash: Function // The hash function to use (e.g. SHA-1) blockSize: Integer // The block size of the hash function (e.g. 64 bytes for SHA-1) // Keys longer than blockSize are shortened by hashing them if (length(key) > blockSize) then key = hash(key) // Keys shorter than blockSize are padded to blockSize by padding with zeros on the right if (length(key) HMAC(k, m) is computed as HMAC(H(k), m) . This property is sometimes raised as a possible weakness of HMAC in password-hashing scenarios: it has been demonstrated that it's possible to find a long ASCII string and a random value whose hash will be also an ASCII string, and both values will produce the same HMAC output. In 2006, Jongsung Kim, Alex Biryukov, Bart Preneel, and Seokhie Hong showed how to distinguish HMAC with reduced versions of MD5 and SHA-1 or full versions of HAVAL, MD4, and SHA-0 from a random function or HMAC with a random function. Differential distinguishers allow an attacker to devise a forgery attack on HMAC. Furthermore, differential and rectangle distinguishers can lead to second-preimage attacks. HMAC with the full version of MD4 can be forged with this knowledge. These attacks do not contradict the security proof of HMAC, but provide insight into HMAC based on existing cryptographic hash functions. In 2009, Xiaoyun Wang et al. presented a distinguishing attack on HMAC-MD5 without using related keys. It can distinguish an instantiation of HMAC with MD5 from an instantiation with a random function with 2 97 queries with probability 0.87. In 2011 an informational RFC 6151 was published to summarize security considerations in MD5 and HMAC-MD5. For HMAC-MD5 the RFC summarizes that – although the security of the MD5 hash function itself is severely compromised – the currently known "attacks on HMAC-MD5 do not seem to indicate a practical vulnerability when used as a message authentication code", but it also adds that "for a new protocol design, a ciphersuite with HMAC-MD5 should not be included". In May 2011, RFC 6234 was published detailing the abstract theory and source code for SHA-based HMACs. ==Examples== Here are some HMAC values, assuming 8-bit ASCII for the input and hexadecimal encoding for the output: HMAC_MD5("key", "The quick brown fox jumps over the lazy dog") = 80070713463e7749b90c2dc24911e275 HMAC_SHA1("key", "The quick brown fox jumps over the lazy dog") = de7c9b85b8b78aa6bc8a7a36f70a90701c9db4d9 HMAC_SHA256("key", "The quick brown fox jumps over the lazy dog") = f7bc83f430538424b13298e6aa6fb143ef4d59a14946175997479dbc2d1a3cd8 HMAC_SHA512("key", "The quick brown fox jumps over the lazy dog") = b42af09057bac1e2d41708e48a902e09b5ff7f12ab428a4fe86653c73dd248fb82f948a549f7b791a5b41915ee4d1ec3935357e4e2317250d0372afa2ebeeb3a ==See also== HMAC-based one-time password ==References== ==External links== Online HMAC Generator / Tester Tool FIPS PUB 198-1, The Keyed-Hash Message Authentication Code (HMAC) C HMAC implementation Python HMAC implementation Java implementation Rust HMAC implementation

References

  1. SHA-1 Broken · retrieved 2026-11-18 · rev 1376152783
    Cite this reference

    MLA "SHA-1 Broken." Schneier, Bruce (August 2005). 2026-11-18. http://www.schneier.com/blog/archives/2005/02/sha1_broken.html. Accessed 24 November 2026.

    Chicago "SHA-1 Broken." Schneier, Bruce (August 2005). 2026-11-18. http://www.schneier.com/blog/archives/2005/02/sha1_broken.html.

    APA Schneier, Bruce (August 2005). (2026). SHA-1 Broken. Retrieved November 24, 2026, from http://www.schneier.com/blog/archives/2005/02/sha1_broken.html

  2. New Proofs for NMAC and HMAC: Security without Collision-Resistance · retrieved 2026-11-18 · rev 1376152783
    Cite this reference

    MLA "New Proofs for NMAC and HMAC: Security without Collision-Resistance." Bellare, Mihir. 2026-11-18. https://eprint.iacr.org/2006/043.pdf. Accessed 24 November 2026.

    Chicago "New Proofs for NMAC and HMAC: Security without Collision-Resistance." Bellare, Mihir. 2026-11-18. https://eprint.iacr.org/2006/043.pdf.

    APA Bellare, Mihir. (2026). New Proofs for NMAC and HMAC: Security without Collision-Resistance. Retrieved November 24, 2026, from https://eprint.iacr.org/2006/043.pdf

  3. PBKDF2+HMAC hash collisions explained · Mathias Bynens · retrieved 2026-11-18 · rev 1376152783
    Cite this reference

    MLA "PBKDF2+HMAC hash collisions explained · Mathias Bynens." 2026-11-18. https://mathiasbynens.be/notes/pbkdf2-hmac. Accessed 24 November 2026.

    Chicago "PBKDF2+HMAC hash collisions explained · Mathias Bynens." 2026-11-18. https://mathiasbynens.be/notes/pbkdf2-hmac.

    APA encyclopegia.org. (2026). PBKDF2+HMAC hash collisions explained · Mathias Bynens. Retrieved November 24, 2026, from https://mathiasbynens.be/notes/pbkdf2-hmac

  4. Aaron Toponce: Breaking HMAC · retrieved 2026-11-18 · rev 1376152783
    Cite this reference

    MLA "Aaron Toponce: Breaking HMAC." 2026-11-18. https://web.archive.org/web/20190807153254/https://pthree.org/2016/07/29/breaking-hmac/. Accessed 24 November 2026.

    Chicago "Aaron Toponce: Breaking HMAC." 2026-11-18. https://web.archive.org/web/20190807153254/https://pthree.org/2016/07/29/breaking-hmac/.

    APA encyclopegia.org. (2026). Aaron Toponce: Breaking HMAC. Retrieved November 24, 2026, from https://web.archive.org/web/20190807153254/https://pthree.org/2016/07/29/breaking-hmac/

  5. RFC 2104 Errata Held for Document Update · Erdem Memisyazici · retrieved 2026-11-18 · rev 1376152783
    Cite this reference

    MLA "RFC 2104 Errata Held for Document Update · Erdem Memisyazici." 2026-11-18. https://www.rfc-editor.org/errata/eid4809. Accessed 24 November 2026.

    Chicago "RFC 2104 Errata Held for Document Update · Erdem Memisyazici." 2026-11-18. https://www.rfc-editor.org/errata/eid4809.

    APA encyclopegia.org. (2026). RFC 2104 Errata Held for Document Update · Erdem Memisyazici. Retrieved November 24, 2026, from https://www.rfc-editor.org/errata/eid4809

  6. On the Security of HMAC and NMAC Based on HAVAL, MD4, MD5, SHA-0 and SHA-1 · retrieved 2026-11-18 · rev 1376152783
    Cite this reference

    MLA "On the Security of HMAC and NMAC Based on HAVAL, MD4, MD5, SHA-0 and SHA-1." Kim, Jongsung; Biryukov, Alex; Preneel, Bart; Hong, Seokhie (2006). 2026-11-18. http://eprint.iacr.org/2006/187.pdf. Accessed 24 November 2026.

    Chicago "On the Security of HMAC and NMAC Based on HAVAL, MD4, MD5, SHA-0 and SHA-1." Kim, Jongsung; Biryukov, Alex; Preneel, Bart; Hong, Seokhie (2006). 2026-11-18. http://eprint.iacr.org/2006/187.pdf.

    APA Kim, Jongsung; Biryukov, Alex; Preneel, Bart; Hong, Seokhie (2006). (2026). On the Security of HMAC and NMAC Based on HAVAL, MD4, MD5, SHA-0 and SHA-1. Retrieved November 24, 2026, from http://eprint.iacr.org/2006/187.pdf

  7. Wang, Xiaoyun; Yu, Hongbo; Wang, Wei; Zhang, Haina; Zhan, Tao (2009), Cryptanalysis on HMAC/NMAC-MD5 and MD5-MAC (PDF) , Lecture Notes in Computer Science, vol. 5479, Berlin, Heidelberg: Springer-Verlag , retrieved 15 June 2015 Wikipedia revision 1376152783, retrieved 2026-11-19 · retrieved 2026-11-18 · rev 1376152783
    Cite this reference

    MLA "Wang, Xiaoyun; Yu, Hongbo; Wang, Wei; Zhang, Haina; Zhan, Tao (2009), Cryptanalysis on HMAC/NMAC-MD5 and MD5-MAC (PDF) , Lecture Notes in Computer Science, vol. 5479, Berlin, Heidelberg: Springer-Verlag , retrieved 15 June 2015 Wikipedia revision 1376152783, retrieved 2026-11-19." Wang, Xiaoyun; Yu, Hongbo; Wang, Wei; Zhang, Haina; Zhan, Tao (2009), Cryptanalysis on HMAC/NMAC-MD5 and MD5-MAC (PDF) ,. 2026-11-18. https://www.iacr.org/archive/eurocrypt2009/54790122/54790122.pdf. Accessed 24 November 2026.

    Chicago "Wang, Xiaoyun; Yu, Hongbo; Wang, Wei; Zhang, Haina; Zhan, Tao (2009), Cryptanalysis on HMAC/NMAC-MD5 and MD5-MAC (PDF) , Lecture Notes in Computer Science, vol. 5479, Berlin, Heidelberg: Springer-Verlag , retrieved 15 June 2015 Wikipedia revision 1376152783, retrieved 2026-11-19." Wang, Xiaoyun; Yu, Hongbo; Wang, Wei; Zhang, Haina; Zhan, Tao (2009), Cryptanalysis on HMAC/NMAC-MD5 and MD5-MAC (PDF) ,. 2026-11-18. https://www.iacr.org/archive/eurocrypt2009/54790122/54790122.pdf.

    APA Wang, Xiaoyun; Yu, Hongbo; Wang, Wei; Zhang, Haina; Zhan, Tao (2009), Cryptanalysis on HMAC/NMAC-MD5 and MD5-MAC (PDF) ,. (2026). Wang, Xiaoyun; Yu, Hongbo; Wang, Wei; Zhang, Haina; Zhan, Tao (2009), Cryptanalysis on HMAC/NMAC-MD5 and MD5-MAC (PDF) , Lecture Notes in Computer Science, vol. 5479, Berlin, Heidelberg: Springer-Verlag , retrieved 15 June 2015 Wikipedia revision 1376152783, retrieved 2026-11-19. Retrieved November 24, 2026, from https://www.iacr.org/archive/eurocrypt2009/54790122/54790122.pdf

  8. FIPS 198-1: The Keyed-Hash Message Authentication Code (HMAC) · retrieved 2026-11-18 · rev 1376152783
    Cite this reference

    MLA "FIPS 198-1: The Keyed-Hash Message Authentication Code (HMAC)." 2026-11-18. https://csrc.nist.gov/publications/detail/fips/198/1/final. Accessed 24 November 2026.

    Chicago "FIPS 198-1: The Keyed-Hash Message Authentication Code (HMAC)." 2026-11-18. https://csrc.nist.gov/publications/detail/fips/198/1/final.

    APA encyclopegia.org. (2026). FIPS 198-1: The Keyed-Hash Message Authentication Code (HMAC). Retrieved November 24, 2026, from https://csrc.nist.gov/publications/detail/fips/198/1/final

  9. FIPS 180-2 with Change Notice 1 · retrieved 2026-11-18 · rev 1376152783
    Cite this reference

    MLA "FIPS 180-2 with Change Notice 1." "FIPS 180-2 with Change Notice 1" (PDF). 2026-11-18. https://csrc.nist.gov/publications/fips/fips180-2/fips180-2withchangenotice.pdf. Accessed 24 November 2026.

    Chicago "FIPS 180-2 with Change Notice 1." "FIPS 180-2 with Change Notice 1" (PDF). 2026-11-18. https://csrc.nist.gov/publications/fips/fips180-2/fips180-2withchangenotice.pdf.

    APA "FIPS 180-2 with Change Notice 1" (PDF). (2026). FIPS 180-2 with Change Notice 1. Retrieved November 24, 2026, from https://csrc.nist.gov/publications/fips/fips180-2/fips180-2withchangenotice.pdf

  10. SHA-3 Standard: Permutation-Based Hash and Extendable-Output Functions · retrieved 2026-11-18 · rev 1376152783
    Cite this reference

    MLA "SHA-3 Standard: Permutation-Based Hash and Extendable-Output Functions." Dworkin, Morris (4 August 2015). 2026-11-18. https://www.nist.gov/publications/sha-3-standard-permutation-based-hash-and-extendable-output-functions. Accessed 24 November 2026.

    Chicago "SHA-3 Standard: Permutation-Based Hash and Extendable-Output Functions." Dworkin, Morris (4 August 2015). 2026-11-18. https://www.nist.gov/publications/sha-3-standard-permutation-based-hash-and-extendable-output-functions.

    APA Dworkin, Morris (4 August 2015). (2026). SHA-3 Standard: Permutation-Based Hash and Extendable-Output Functions. Retrieved November 24, 2026, from https://www.nist.gov/publications/sha-3-standard-permutation-based-hash-and-extendable-output-functions

  11. Preneel, Bart ; van Oorschot, Paul C. (1995), MDx-MAC and Building Fast MACs from Hash Functions , Lecture Notes in Computer Science, vol. 963, Berlin-Heidelberg: Springer Verlag, CiteSeerX 10.1.1.34.3855 {{ citation }} : Cite uses deprecated parameter |citeseerx= ( help ) Wikipedia revision 1376152783, retrieved 2026-11-19 · retrieved 2026-11-18 · rev 1376152783
    Cite this reference

    MLA "Preneel, Bart ; van Oorschot, Paul C. (1995), MDx-MAC and Building Fast MACs from Hash Functions , Lecture Notes in Computer Science, vol. 963, Berlin-Heidelberg: Springer Verlag, CiteSeerX 10.1.1.34.3855 {{ citation }} : Cite uses deprecated parameter |citeseerx= ( help ) Wikipedia revision 1376152783, retrieved 2026-11-19." Preneel, Bart ; van Oorschot, Paul C. 2026-11-18. https://en.wikipedia.org/wiki/Bart_Preneel. Accessed 24 November 2026.

    Chicago "Preneel, Bart ; van Oorschot, Paul C. (1995), MDx-MAC and Building Fast MACs from Hash Functions , Lecture Notes in Computer Science, vol. 963, Berlin-Heidelberg: Springer Verlag, CiteSeerX 10.1.1.34.3855 {{ citation }} : Cite uses deprecated parameter |citeseerx= ( help ) Wikipedia revision 1376152783, retrieved 2026-11-19." Preneel, Bart ; van Oorschot, Paul C. 2026-11-18. https://en.wikipedia.org/wiki/Bart_Preneel.

    APA Preneel, Bart ; van Oorschot, Paul C. (2026). Preneel, Bart ; van Oorschot, Paul C. (1995), MDx-MAC and Building Fast MACs from Hash Functions , Lecture Notes in Computer Science, vol. 963, Berlin-Heidelberg: Springer Verlag, CiteSeerX 10.1.1.34.3855 {{ citation }} : Cite uses deprecated parameter |citeseerx= ( help ) Wikipedia revision 1376152783, retrieved 2026-11-19. Retrieved November 24, 2026, from https://en.wikipedia.org/wiki/Bart_Preneel

  12. Preneel, Bart ; van Oorschot, Paul C. (1995), On the Security of Two MAC Algorithms , CiteSeerX 10.1.1.42.8908 {{ citation }} : Cite uses deprecated parameter |citeseerx= ( help ) Wikipedia revision 1376152783, retrieved 2026-11-19 · retrieved 2026-11-18 · rev 1376152783
    Cite this reference

    MLA "Preneel, Bart ; van Oorschot, Paul C. (1995), On the Security of Two MAC Algorithms , CiteSeerX 10.1.1.42.8908 {{ citation }} : Cite uses deprecated parameter |citeseerx= ( help ) Wikipedia revision 1376152783, retrieved 2026-11-19." Preneel, Bart ; van Oorschot, Paul C. 2026-11-18. https://en.wikipedia.org/wiki/Bart_Preneel. Accessed 24 November 2026.

    Chicago "Preneel, Bart ; van Oorschot, Paul C. (1995), On the Security of Two MAC Algorithms , CiteSeerX 10.1.1.42.8908 {{ citation }} : Cite uses deprecated parameter |citeseerx= ( help ) Wikipedia revision 1376152783, retrieved 2026-11-19." Preneel, Bart ; van Oorschot, Paul C. 2026-11-18. https://en.wikipedia.org/wiki/Bart_Preneel.

    APA Preneel, Bart ; van Oorschot, Paul C. (2026). Preneel, Bart ; van Oorschot, Paul C. (1995), On the Security of Two MAC Algorithms , CiteSeerX 10.1.1.42.8908 {{ citation }} : Cite uses deprecated parameter |citeseerx= ( help ) Wikipedia revision 1376152783, retrieved 2026-11-19. Retrieved November 24, 2026, from https://en.wikipedia.org/wiki/Bart_Preneel

  13. Keccak Team – Design and security · retrieved 2026-11-18 · rev 1376152783
    Cite this reference

    MLA "Keccak Team – Design and security." Keccak team. 2026-11-18. https://keccak.team/keccak_strengths.html. Accessed 24 November 2026.

    Chicago "Keccak Team – Design and security." Keccak team. 2026-11-18. https://keccak.team/keccak_strengths.html.

    APA Keccak team. (2026). Keccak Team – Design and security. Retrieved November 24, 2026, from https://keccak.team/keccak_strengths.html

  14. Message Authentication using Hash Functions—The HMAC Construction · retrieved 2026-11-18 · rev 1376152783
    Cite this reference

    MLA "Message Authentication using Hash Functions—The HMAC Construction." a b c Bellare, Mihir; Canetti, Ran; Krawczyk, Hugo (Spring 1996). 2026-11-18. https://cseweb.ucsd.edu/~mihir/papers/hmac-cb.pdf. Accessed 24 November 2026.

    Chicago "Message Authentication using Hash Functions—The HMAC Construction." a b c Bellare, Mihir; Canetti, Ran; Krawczyk, Hugo (Spring 1996). 2026-11-18. https://cseweb.ucsd.edu/~mihir/papers/hmac-cb.pdf.

    APA a b c Bellare, Mihir; Canetti, Ran; Krawczyk, Hugo (Spring 1996). (2026). Message Authentication using Hash Functions—The HMAC Construction. Retrieved November 24, 2026, from https://cseweb.ucsd.edu/~mihir/papers/hmac-cb.pdf

  15. Keying Hash Functions for Message Authentication · retrieved 2026-11-18 · rev 1376152783
    Cite this reference

    MLA "Keying Hash Functions for Message Authentication." a b c Bellare, Mihir ; Canetti, Ran; Krawczyk, Hugo (1996). 2026-11-18. https://en.wikipedia.org/wiki/Mihir_Bellare. Accessed 24 November 2026.

    Chicago "Keying Hash Functions for Message Authentication." a b c Bellare, Mihir ; Canetti, Ran; Krawczyk, Hugo (1996). 2026-11-18. https://en.wikipedia.org/wiki/Mihir_Bellare.

    APA a b c Bellare, Mihir ; Canetti, Ran; Krawczyk, Hugo (1996). (2026). Keying Hash Functions for Message Authentication. Retrieved November 24, 2026, from https://en.wikipedia.org/wiki/Mihir_Bellare

  16. a b c d H. Krawczyk; M. Bellare; R. Canetti (February 1997). HMAC: Keyed-Hashing for Message Authentication . IETF Network Working Group. doi : 10.17487/RFC2104 . RFC 2104 . Informational. Updated by RFC 6151 . Wikipedia revision 1376152783, retrieved 2026-11-19 · retrieved 2026-11-18 · rev 1376152783
    Cite this reference

    MLA "a b c d H. Krawczyk; M. Bellare; R. Canetti (February 1997). HMAC: Keyed-Hashing for Message Authentication . IETF Network Working Group. doi : 10.17487/RFC2104 . RFC 2104 . Informational. Updated by RFC 6151 . Wikipedia revision 1376152783, retrieved 2026-11-19." a b c d H. 2026-11-18. https://www.rfc-editor.org/rfc/rfc2104. Accessed 24 November 2026.

    Chicago "a b c d H. Krawczyk; M. Bellare; R. Canetti (February 1997). HMAC: Keyed-Hashing for Message Authentication . IETF Network Working Group. doi : 10.17487/RFC2104 . RFC 2104 . Informational. Updated by RFC 6151 . Wikipedia revision 1376152783, retrieved 2026-11-19." a b c d H. 2026-11-18. https://www.rfc-editor.org/rfc/rfc2104.

    APA a b c d H. (2026). a b c d H. Krawczyk; M. Bellare; R. Canetti (February 1997). HMAC: Keyed-Hashing for Message Authentication . IETF Network Working Group. doi : 10.17487/RFC2104 . RFC 2104 . Informational. Updated by RFC 6151 . Wikipedia revision 1376152783, retrieved 2026-11-19. Retrieved November 24, 2026, from https://www.rfc-editor.org/rfc/rfc2104

  17. birthday attack · retrieved 2026-11-18 · rev 1376152783
    Cite this reference

    MLA "birthday attack." H. 2026-11-18. https://www.rfc-editor.org/rfc/rfc2104. Accessed 24 November 2026.

    Chicago "birthday attack." H. 2026-11-18. https://www.rfc-editor.org/rfc/rfc2104.

    APA H. (2026). birthday attack. Retrieved November 24, 2026, from https://www.rfc-editor.org/rfc/rfc2104

  18. a b S. Turner; L. Chen (March 2011). Updated Security Considerations for the MD5 Message-Digest and the HMAC-MD5 Algorithms . Internet Engineering Task Force . doi : 10.17487/RFC6151 . RFC 6151 . Informational. Updates RFC 2104 and 1321 . Wikipedia revision 1376152783, retrieved 2026-11-19 · retrieved 2026-11-18 · rev 1376152783
    Cite this reference

    MLA "a b S. Turner; L. Chen (March 2011). Updated Security Considerations for the MD5 Message-Digest and the HMAC-MD5 Algorithms . Internet Engineering Task Force . doi : 10.17487/RFC6151 . RFC 6151 . Informational. Updates RFC 2104 and 1321 . Wikipedia revision 1376152783, retrieved 2026-11-19." a b S. 2026-11-18. https://www.rfc-editor.org/rfc/rfc6151. Accessed 24 November 2026.

    Chicago "a b S. Turner; L. Chen (March 2011). Updated Security Considerations for the MD5 Message-Digest and the HMAC-MD5 Algorithms . Internet Engineering Task Force . doi : 10.17487/RFC6151 . RFC 6151 . Informational. Updates RFC 2104 and 1321 . Wikipedia revision 1376152783, retrieved 2026-11-19." a b S. 2026-11-18. https://www.rfc-editor.org/rfc/rfc6151.

    APA a b S. (2026). a b S. Turner; L. Chen (March 2011). Updated Security Considerations for the MD5 Message-Digest and the HMAC-MD5 Algorithms . Internet Engineering Task Force . doi : 10.17487/RFC6151 . RFC 6151 . Informational. Updates RFC 2104 and 1321 . Wikipedia revision 1376152783, retrieved 2026-11-19. Retrieved November 24, 2026, from https://www.rfc-editor.org/rfc/rfc6151

  19. Eastlake, Donald; Hansen, Tony (May 2011). US Secure Hash Algorithms (SHA and SHA-based HMAC and HKDF) . Internet Engineering Task Force . doi : 10.17487/RFC6234 . ISSN 2070-1721 . RFC 6234 . Informational. Obsoletes RFC 4634 . Updates RFC 3174 Wikipedia revision 1376152783, retrieved 2026-11-19 · retrieved 2026-11-18 · rev 1376152783
    Cite this reference

    MLA "Eastlake, Donald; Hansen, Tony (May 2011). US Secure Hash Algorithms (SHA and SHA-based HMAC and HKDF) . Internet Engineering Task Force . doi : 10.17487/RFC6234 . ISSN 2070-1721 . RFC 6234 . Informational. Obsoletes RFC 4634 . Updates RFC 3174 Wikipedia revision 1376152783, retrieved 2026-11-19." Eastlake, Donald; Hansen, Tony (May 2011). 2026-11-18. https://www.rfc-editor.org/rfc/rfc6234. Accessed 24 November 2026.

    Chicago "Eastlake, Donald; Hansen, Tony (May 2011). US Secure Hash Algorithms (SHA and SHA-based HMAC and HKDF) . Internet Engineering Task Force . doi : 10.17487/RFC6234 . ISSN 2070-1721 . RFC 6234 . Informational. Obsoletes RFC 4634 . Updates RFC 3174 Wikipedia revision 1376152783, retrieved 2026-11-19." Eastlake, Donald; Hansen, Tony (May 2011). 2026-11-18. https://www.rfc-editor.org/rfc/rfc6234.

    APA Eastlake, Donald; Hansen, Tony (May 2011). (2026). Eastlake, Donald; Hansen, Tony (May 2011). US Secure Hash Algorithms (SHA and SHA-based HMAC and HKDF) . Internet Engineering Task Force . doi : 10.17487/RFC6234 . ISSN 2070-1721 . RFC 6234 . Informational. Obsoletes RFC 4634 . Updates RFC 3174 Wikipedia revision 1376152783, retrieved 2026-11-19. Retrieved November 24, 2026, from https://www.rfc-editor.org/rfc/rfc6234

Cite this article

MLA

"HMAC." encyclopegia.org, 2026, https://encyclopegia.org/wiki/hmac. Accessed 24 November 2026.

Chicago

"HMAC." encyclopegia.org. Accessed November 24, 2026. https://encyclopegia.org/wiki/hmac.

APA

encyclopegia.org. (2026). HMAC. Retrieved November 24, 2026, from https://encyclopegia.org/wiki/hmac

Accessed November 24, 2026 · CC BY-SA 4.0 · citation page · JSON

Related articles

HMAC-based one-time password

enwiki · references available
CC BY-SA 4.0 · share-alike · https://en.wikipedia.org/w/index.php?oldid=1376152783 · 0.5 · snapshot enwiki-001376152783

Cite · JSON · Search

Related services and records

Services

  • Estate — measured countries, lanes and facts
  • Intel — live corroborated events
  • Legal — statutes, cases and citations
  • Encyclopedia — articles with inline sources
  • Space — launches, satellites and orbits
  • Search — federated search and reports
  • Pass — passport account and SSO
  • Corpora — read-only corpus origins
  • e01 — self-hosted corpora and tools

Text and metadata only; each target carries its own sources. Missing data is published as no-data, never estimated.