import hashlib


def string_to_md5(content: str) -> str:
    """
    Take a string and calculate its md5 hash (as a string).
    """
    encoded = content.encode("utf8")
    return hashlib.md5(encoded).hexdigest()