Calculate the hashsum of various things.