data_helper.hash module¶
Data hashing helper
This module provides regular expressions wrapper functions to streamline common use cases.
-
data_helper.hash.md5(data)[source]¶ Return the MD5 hash
Parameters: data (str) – Data to be hashed. Returns: Hexadecimal hash string. Return type: str
-
data_helper.hash.py(*args)[source]¶ Wrap the python hash() function
Parameters: args (str) – Object to be hashed. See hash()Returns: Hash value Return type: int
-
data_helper.hash.sha1(data)[source]¶ Return the SHA1 hash
Parameters: data (str) – Data to be hashed. Returns: Hexadecimal hash string. Return type: str
-
data_helper.hash.sha224(data)[source]¶ Return the SHA224 hash
Parameters: data (str) – Data to be hashed. Returns: Hexadecimal hash string. Return type: str
-
data_helper.hash.sha256(data)[source]¶ Return the SHA256 hash
Parameters: data (str) – Data to be hashed. Returns: Hexadecimal hash string. Return type: str