Add hash type parameter with md5 and crc32 as values

crc32 is MUCH faster than md5 and seems to be even enough in distribution.

I haven't actually run this since I don't have a setup to do so.