What is the purpose of the hashlib module in Python?
The hashlib module in Python is a standard library that offers a set of functions for encrypting hash algorithms. It can be used to calculate and compare hash values of data, for purposes like data integrity verification, password storage, digital signatures, and other security-related operations. The hashlib module supports multiple hash algorithms like MD5, SHA1, and SHA256.