Blockchain tutorial 30: HMAC @Mobilefish
Blockchain tutorial 30: HMAC  @Mobilefish
Uploaded December 2018 | Updated September 2026, 2 weeks ago
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=PLmL13yqb6OxdEgSoua2WuqHKBuIqvll0x

Subscribe to my YouTube channel:
youtube.com/channel/UCG5_CT_KjexxjbgNE4lVGkg?sub_confirmation=1

The presentation used in this video tutorial can be found at:
mobilefish.com/developer/blockchain/blockchain_quickguide_tutorial.html

#mobilefish #blockchain #bitcoin #cryptocurrency #ethereum
Blockchain tutorial 30: HMACLoRa/LoRaWAN tutorial 48: Yagi-Uda AntennaBlockchain tutorial 25: Testnet and faucetsLoRa/LoRaWAN tutorial 50: Enclosures and IP RatingBlockchain tutorial 28: Bitcoin Improvement Proposal 39 (BIP-39) mnemonic wordsBlockchain tutorial 19: Create Bitcoin paper walletLoRa/LoRaWAN tutorial 8: Link Budget and Link MarginIOTA tutorial 14: Message and TagLoRa/LoRaWAN tutorial 58: Uplink and downlink messages using the Paho MQTT Python client libraryBTW cursus 7: Opgaaf intracommunautaire prestaties (ICP)Blockchain tutorial 2: Random numbersLoRa/LoRaWAN tutorial 25: Downlink Demonstration With The Things Network
Mobilefish.com |

Blockchain tutorial 30: HMAC

SHARE TO X SHARE TO REDDIT SHARE TO FACEBOOK WALLPAPER