Simple cryptographic hash function
Posted on 2004-10-20
I am aware of the theory and purpose of cryptographic hashes like MD5, SHA, etc.
I also am interested in using a simple crypto hash in a small project I am currently dreaming up. I say simple because i want the code for this project to be *extremely* small. Under 1k would be good, under 512 bytes is my true goal.
I need to take in 10-50 bytes of a seed and create a 4-10 byte hash that can, of course, be guaranteed the same each time with the same input, and maximizing unique outputs for unique inputs.
I realize that this is a difficult, if not impossible, task. What I am looking for is resources describing some lower theory of crypto hashes, like how to program them from scratch, and possibly some examples of existing simple crypto hash algorithms.