Coding a SHA2 Length Extension Attack - Computerphile
Evaluation and Summary
This Computerphile episode features Mike Pound, a lecturer at the University of Nottingham, demonstrating how to implement a SHA2 length extension attack—a cryptographic vulnerability that allows an attacker to append data to a message without knowing the original secret key. The episode builds directly on a prior video where Mike introduced the concept, now focusing on hands-on coding. Using Python, he walks through the step-by-step process of constructing the attack, explaining how SHA2’s Merkle-Damgård construction enables this exploit. He shows how to manipulate message padding, hash chaining, and the internal state of the hash function to forge a new valid hash for a modified message. The code is available via a GitHub link provided in the show notes, allowing viewers to follow along. The episode is concise, running for 18 minutes, and maintains a technical focus throughout. Mike’s explanation is precise and assumes a basic understanding of hash functions and cryptography. The production quality is high, with clean visuals and clear narration. The episode is supported by Jane Street, a sponsor mentioned in the description, but no overt promotional content is present. The video is part of the Computerphile series, known for in-depth technical content on computing topics, and is produced by Brady Haran’s team. The episode serves as a practical, educational follow-up to theoretical concepts, offering real code and insight into a specific cryptographic weakness. It is ideal for viewers with intermediate knowledge of cryptography who want to understand how such attacks are implemented in practice.
Verdict: A tightly structured, accurate, and highly educational demo that delivers exactly what its title promises.
Education rubric
-
Clarity of explanation 4/5 20%
Complex cryptographic concepts are broken down step by step with clear code demonstrations, though some prior knowledge is assumed.
-
Accuracy 5/5 20%
The implementation and explanation align with known cryptographic principles and the SHA2 algorithm's behavior.
-
Structure 5/5 15%
The episode builds logically from concept to code, with a clear progression from theory to practical execution.
-
Substance 5/5 15%
The episode delivers dense, technical content throughout with no filler; every minute contributes to the core topic.
-
Delivers on its title 5/5 15%
The title and description accurately promise and deliver a hands-on coding demo of a SHA2 length extension attack.
-
Value for time 5/5 15%
The 18-minute runtime is tightly packed with relevant, actionable content that fully justifies its length.
Worth it if you're learning cryptography and want a practical coding walkthrough of a real-world attack.
Content flags
- Ad-heavy The episode includes multiple sponsor mentions and a prominent ad choice notice, disrupting flow despite minimal content impact.
Based on the episode description. AI-generated; it can be wrong.
Show notes
More from Computerphile
The episode 'Behind the Scenes at GTC AI Conference - Computerphile' offers a brief, promotional glimpse into the 2026 GTC AI Conference hosted by Nvidia, which showcases advancements in AI and related technologies. The video, lasting just six minutes, is presented as a teaser from Computerphile’s on-site coverage,…
Worth it if you're a fan of Computerphile and want a quick preview of the GTC AI Conference.
The episode explores Amplified Denial of Service (Amplified DoS) attacks, a type of cyberattack that could potentially disrupt the entire internet. Hosted by Tom Scott, the episode explains how these attacks work by exploiting vulnerabilities in network protocols—specifically, how attackers can send small requests to…
Worth it if you're interested in internet security and how everyday vulnerabilities can scale into systemic risks.
The episode features Jensen Huang, CEO and co-founder of Nvidia, discussing the evolving applications of GPUs beyond gaming, particularly in the context of artificial intelligence and parallel processing. The conversation, hosted by Computerphile, touches on how GPUs have become foundational to modern AI development…
Worth it if you're new to GPU technology and want a high-level introduction from a leading expert.
The episode 'The Dawn of Desktop Publishing' on Computerphile explores the historical significance of the Apple LaserWriter in revolutionizing home and office printing. It highlights how the LaserWriter, paired with the original Apple Macintosh, transformed desktop publishing by enabling high-quality, affordable…
Worth it if you're interested in the history of personal computing and design technology.
This episode, titled 'EXTRA BITS - Installing Ubuntu Permanently', is a supplementary video to the main 'XP to Ubuntu' series on Computerphile. It documents Joe, a regular contributor to the channel, installing Ubuntu Linux permanently on an old laptop, which involves formatting the hard drive and erasing both the…
Worth it if you're considering switching to Linux and want a real-time demo of the installation process.
The episode 'Reputation Lag Attack' from Computerphile explores a specific cybersecurity vulnerability known as a 'reputation lag attack,' where malicious actors exploit delays in online reputation systems to carry out attacks before defenses can react. The topic focuses on how certain online systems—such as email or…
Worth it if you're interested in cybersecurity fundamentals and how trust systems can be exploited.