Live data from Hacker News

Show HN: SHA-256 Animation

github.com

11–20 of 105 posts

Re: Show HN: SHA-256 Animation

#12
post #3
post #2

I wanted to understand how SHA-256 works, so I made a terminal animation that shows the bitwise operations at each step. I wrote a text guide in the README.md to explain what's going on. I think my technical terminology is okay. I'm new to hash functions though, so I don't yet know why SHA-256 has been designed in the way it has (e.g. why exact numbers were chosen in the bitwise rotations). As far as I understand, th…

This is a great idea of showing something that is at first very complex. Could be used in Discreet Mathematics to teach students!

Indiscreet mathematics?

Re: Show HN: SHA-256 Animation

#14
post #7
post #6

This is so interesting to watch. Can you do it for other hash or encryption methods?

I have thought about it. Any particularly interesting ones?

md5/sha1 is useful because they're still used in UUID (rfc 4122) generation. obv not from a crypto standpoint but more from a unique (non-exploited) approach.

Re: Show HN: SHA-256 Animation

#17
post #2

I wanted to understand how SHA-256 works, so I made a terminal animation that shows the bitwise operations at each step. I wrote a text guide in the README.md to explain what's going on. I think my technical terminology is okay. I'm new to hash functions though, so I don't yet know why SHA-256 has been designed in the way it has (e.g. why exact numbers were chosen in the bitwise rotations). As far as I understand, th…

Nice work, and that is a very cool approach to learning new things!

Re: Show HN: SHA-256 Animation

#18
post #7
post #6

This is so interesting to watch. Can you do it for other hash or encryption methods?

I have thought about it. Any particularly interesting ones?

Interesting candidates are blake2b, sha-3/keccak, and the much simpler siphash-2-4 that's used in many hashtable implementations.
Post reply on HN