remove unused dependencies, use crypto instead of hashlib