operations
get_hash_from_str(input_str=None, encoding='utf-8')
Return a hashed version of an input string.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
input_str |
str
|
The string to hash |
None
|
encoding |
str
|
The character encoding to use |
'utf-8'
|
Returns
(str): A hashed representation of `input_str`
Raises
ValueError: When input validation fails
Exception: A generic `Exception` when converting string to hash fails