I want to generate a 24-bit-length hash from strings.
After some googling, I found this: http://code.activestate.com/recipes/164274-fixed-size-cache/ , but it seems to be too complex.
Are there other, simpler, ways to generate a 24-bit hash?
Thanks!
Does it need to by cryptographically secure? I think you could probably just truncate one of the hashes from
hashlib.