python: generate 24bit hash -



need genereate 24bit-length hashes strings. after googling, i've fount this: http://code.activestate.com/recipes/164274-fixed-size-cache/ , but, me, bit overcomplex.
there other simple way generate 24 bit hash?

thanks!

does need cryptographically secure? think truncate 1 of hashes hashlib.


Comments

Popular posts from this blog

apache - Add omitted ? to URLs -

redirect - bbPress Forum - rewrite to wwww.mysite prohibits login -

php - How can I stop spam on my custom forum/blog? -