"""MD5 hash algorithm utility.""" import hashlib def calculate_md5(str_to_md5: str) -> str: """Generate MD5 hash utility.""" return hashlib.md5(str_to_md5.encode("utf-8")).hexdigest()