How Does SHA-256 Work?

Channel:learnmeabitcoin · Length:22:59 · Published:2020-05-12 · Views:375311

Watch on YouTube

Summary

A step-by-step animated explanation of how SHA-256 works, from padding and message schedule to the compression function and final hash, with source code for the animations.

Why HN recommends it

Commenters call it clear enough to implement the algorithm from, and teachers use it in courses.

I found this video to be an excellent explanation and sufficient to implement the algorithm — HN, 2022

Cryptography

Subtitles (excerpt)

so I was interested to find out how the sha-256 hash function worked so I created this little script that animates the hashing of data so that I could see how it works so this script here is just hashing the string ABC yes hashing away in the background so what I want to do in this video is give a step by step explanation of how the sha-256 hash function works and I'm gonna start with the basics and then build upon them so that we end up making our way to this overall hash function mechanism and then we'll understand how sha-256 works so bear with me I'll just gonna start with the basic basics and the first of all what does the hash function well the hash function just takes in some data and it gives you like a unique shorter summary or fingerprint of that data it's all it does it's or scrambles it and gives you a shorter digest for that data so if I make a tiny change to that data you get two completely different results so I have a piece of data in the world has its own unique hash digest so you can do this for Strings or you can do this with files so I've got this file here saying well I'm saying hello there so save that and if I take the char 256 some of that file there it is if

On Hacker News

I found this video to be an excellent explanation and sufficient to implement the algorithm: [VIDEO] Code: [LINK] This site contains a nice visualization: [LINK] — 7373737373, 2022-03
Oh this is great. When we taught SHA-256 last semester, we linked to this YouTube video: [VIDEO] . Next time we do it, we'll probably link to both. Having several different ways to visualize the same thing is very helpful, and I like that this one moves quickly. A couple of details missing from this visualization are how you pad a message to be a multiple of the block size, and how you chain bloc… — oconnor663, 2022-02
Here's the author doing an in-depth explanation of how SHA-256 works using this code: [VIDEO] I'm halfway through, but looks very well done, thanks! — 1_player, 2020-05
This looks great, though it requires quite sometime to go through it (and figure out what could possibly be understood by someone with knowledge of programming and bit wise operators, and what can just be skipped because it’s something only cryptographers can understand). If someone were to make a slower video explaining it with all the sections from this dissection, that’d be even more awesome. … — newscracker, 2020-05

Related videos