I add this function to my .bash_profile
so I can create short hashes from the command line. Not for anything serious, mainly when I want to generate a random username or something. There's of course many ways (likely better) to create short hashes, but I use the crc32
approach w/in my php code often, so I like the consistency.
$ shash hello
outputs: 3d653119