hashcompat was deprecated, using hashlib instead.