Hash functions are a fun cryptographic concept which map arbitrarily long data into a fixed-length space. In most cases, they are collision-resistant and non-reversible.
In this video, I talk about hash functions, their definition, and give examples of hash function output using Python. I also demo a small program which compares hash vs byte comparison for files.
Wikipedia Article on Hash Functions: https://en.wikipedia.org/wiki/Hash_function
An excellent (advanced) writeup on Hash Functions: https://cseweb.ucsd.edu/~mihir/cse207/w-hash.pdf
The sample program I created: https://gist.github.com/brandonio21/30fe3c81a6e763c9aaba047e70a78ebf
4 Comments