Fixing hashlib issues