Cryptography with Python 30: HMAC, Encrypt-then-MAC, and GCM Explained
This video covers the concepts of HMAC, the Encrypt-then-MAC approach, and Galois/Counter Mode (GCM) in cryptography using Python. For a complete course, visit the provided playlist link.

Cyrill Gössi
1.1K views • Jul 14, 2022

About this video
Entire course: ➡️ https://www.youtube.com/playlist?list=PLWjMI9CAmVU4--SmpzgswTvxLkZqC9QWn
⏰ Timestamps for content in this video ⏰
00:00 Message authentication codes (MAC)
02:29 Hash-based message authentication code (HMAC)
06:21 Authenticated encryption (AE) with Encrypt-then-MAC
09:51 Authenticated encryption with associated data (AEAD) with Galois/Couner Mode (GCM)
🔷🔷 About 🔷🔷
This Fundamental Cryptography in Theory and Python lesson presents message authentication codes (MAC), authenticated encryption (AE), and authenticated encryption with associated data (AEAD) as three cryptographic concepts serving authenticity.
The lesson also presents, how a hash-based message authentication code (HMAC) as a cryptographic primitive is a specific type of MAC, how Encrypt-then-MAC approaches are instances of AE, and how the Galois/Counter Mode (GCM) block cipher mode of operation is an instance of AEAD.
📝 Resources used and created for code lessons 📝
https://github.com/cgossi/fundamental_cryptography_with_python
🔗 Links included in this video 🔗
https://en.wikipedia.org/wiki/HMAC
https://en.wikipedia.org/wiki/Authenticated_Encryption
https://en.wikipedia.org/wiki/Authenticated_encryption#Encrypt-then-MAC_(EtM%29
https://en.wikipedia.org/wiki/Authenticated_encryption#Authenticated_encryption_with_associated_data_(AEAD%29
https://en.wikipedia.org/wiki/Galois/Counter_Mode
https://en.wikipedia.org/wiki/CCM_mode
⏰ Timestamps for content in this video ⏰
00:00 Message authentication codes (MAC)
02:29 Hash-based message authentication code (HMAC)
06:21 Authenticated encryption (AE) with Encrypt-then-MAC
09:51 Authenticated encryption with associated data (AEAD) with Galois/Couner Mode (GCM)
🔷🔷 About 🔷🔷
This Fundamental Cryptography in Theory and Python lesson presents message authentication codes (MAC), authenticated encryption (AE), and authenticated encryption with associated data (AEAD) as three cryptographic concepts serving authenticity.
The lesson also presents, how a hash-based message authentication code (HMAC) as a cryptographic primitive is a specific type of MAC, how Encrypt-then-MAC approaches are instances of AE, and how the Galois/Counter Mode (GCM) block cipher mode of operation is an instance of AEAD.
📝 Resources used and created for code lessons 📝
https://github.com/cgossi/fundamental_cryptography_with_python
🔗 Links included in this video 🔗
https://en.wikipedia.org/wiki/HMAC
https://en.wikipedia.org/wiki/Authenticated_Encryption
https://en.wikipedia.org/wiki/Authenticated_encryption#Encrypt-then-MAC_(EtM%29
https://en.wikipedia.org/wiki/Authenticated_encryption#Authenticated_encryption_with_associated_data_(AEAD%29
https://en.wikipedia.org/wiki/Galois/Counter_Mode
https://en.wikipedia.org/wiki/CCM_mode
Tags and Topics
Browse our collection to discover more content in these categories.
Video Information
Views
1.1K
Likes
17
Duration
12:51
Published
Jul 14, 2022
User Reviews
4.5
(1)