Hashlib is a Python module that implements a common interface to many different secure hash and message digest algorithms.