Playback starts YouTube’s embedded player (privacy-enhanced mode).
Blockchain tutorial 30: HMAC
ChannelMobilefish.comDescription from the creator
If you like this video and want to support me, go this page for my donation crypto addresses:
youtube.com/c/mobilefish/about
This is part 30 of the Blockchain tutorial.
In this video series different topics will be explained which will help you to understand blockchain.
It is recommended to watch each video sequentially as I may refer to certain Blockchain topics explained earlier.
In this tutorial I will explain what HMAC is.
HMAC stands for Hashed-based Message Authentication Code and is used to verify the integrity and authenticity of a message.
HMAC can be used with any iterative cryptographic hash function e.g., MD5, SHA-1, SHA-256, SHA-512 in combination with a shared secret key.
If used with MD5, it is called HMAC-MD5.
If used with SHA-1, it is called HMAC-SHA1.
etc.
More info: ietf.org/rfc/rfc2104.txt
Once the HMAC hash is calculated, the message must be sent alongside the HMAC hash.
To compute HMAC over a message m the following steps are applied:
HMAC (K,m) = H((K XOR opad) || H((K XOR ipad) || m))
HMAC is constructed by hashing the XOR of the secret key K with the outer padding opad concatentated with the hash of the secret key K XORed with the inner padding ipad concatenated with the message.
The values opad and ipad are constants and were arbitrarily chosen by the HMAC designers.
opad is the byte value 0x5C repeated B times.
ipad is the byte value 0x36 repeated B times.
Where B is the blocksize in bytes of the underlying hash function (MD5, SHA-1, etc.)
To compute HMAC in a more "understandable" way:
HMAC (K,m) = H((K XOR opad) || H((K XOR ipad) || m))
inner_key = K XOR ipad
outer_key = K XOR opad
inner_hash = H(inner_key || m)
HMAC(K,m) = H(outer_key || inner_hash)
Check out all my other Blockchain tutorial videos:
youtube.com/playlist?list=PLmL13yqb6OxdEgSoua2W…
Subscribe to my YouTube channel:
youtube.com/channel/UCG5_CT_KjexxjbgNE4lVGkg?su…
The presentation used in this video tutorial can be found at:
mobilefish.com/developer/blockchain/blockchain_…
#mobilefish #blockchain #bitcoin #cryptocurrency #ethereum
youtube.com/c/mobilefish/about
This is part 30 of the Blockchain tutorial.
In this video series different topics will be explained which will help you to understand blockchain.
It is recommended to watch each video sequentially as I may refer to certain Blockchain topics explained earlier.
In this tutorial I will explain what HMAC is.
HMAC stands for Hashed-based Message Authentication Code and is used to verify the integrity and authenticity of a message.
HMAC can be used with any iterative cryptographic hash function e.g., MD5, SHA-1, SHA-256, SHA-512 in combination with a shared secret key.
If used with MD5, it is called HMAC-MD5.
If used with SHA-1, it is called HMAC-SHA1.
etc.
More info: ietf.org/rfc/rfc2104.txt
Once the HMAC hash is calculated, the message must be sent alongside the HMAC hash.
To compute HMAC over a message m the following steps are applied:
HMAC (K,m) = H((K XOR opad) || H((K XOR ipad) || m))
HMAC is constructed by hashing the XOR of the secret key K with the outer padding opad concatentated with the hash of the secret key K XORed with the inner padding ipad concatenated with the message.
The values opad and ipad are constants and were arbitrarily chosen by the HMAC designers.
opad is the byte value 0x5C repeated B times.
ipad is the byte value 0x36 repeated B times.
Where B is the blocksize in bytes of the underlying hash function (MD5, SHA-1, etc.)
To compute HMAC in a more "understandable" way:
HMAC (K,m) = H((K XOR opad) || H((K XOR ipad) || m))
inner_key = K XOR ipad
outer_key = K XOR opad
inner_hash = H(inner_key || m)
HMAC(K,m) = H(outer_key || inner_hash)
Check out all my other Blockchain tutorial videos:
youtube.com/playlist?list=PLmL13yqb6OxdEgSoua2W…
Subscribe to my YouTube channel:
youtube.com/channel/UCG5_CT_KjexxjbgNE4lVGkg?su…
The presentation used in this video tutorial can be found at:
mobilefish.com/developer/blockchain/blockchain_…
#mobilefish #blockchain #bitcoin #cryptocurrency #ethereum
About this tutorial
Mobilefish.com published this 3:34 video tutorial on November 10, 2019. It has been watched 17,494 times on YouTube.
- Channel
- Mobilefish.com
- Category
- Science & Technology
- Duration
- 3:34
- Published
- November 10, 2019
- Views
- 17,494
- Likes
- 439
Tags
Share
This tutorial in other languages
- FRBlockchain tutoriel 30: HMAC
- EStutorial Blockchain 30: HMAC
- PTBlockchain tutorial 30: HMAC
- ITBlockchain Esercitazione 30: HMAC
- DEBlockchain Tutorial 30: HMAC
- NLBlockchain Tutorial 30: HMAC
- RUBlockchain учебник 30: HMAC
- PLBlockchain poradnik 30: HMAC
- JABlockchainチュートリアル30:HMAC
- ARBlockchain تعليمي 30: HMAC
- HIBlockchain ट्यूटोरियल 30: HMAC
- IDBlockchain tutorial 30: HMAC