make hash() return shorter results and verify/create checksum