Don't close inputStream in hash function (rude!)