import hashlib


def compute_text_md5(text):
    """ Compute md5sum as hexdigest

    :param text: the input string
    :rtype string
    """
    m = hashlib.md5()
    m.update(text)
    return m.hexdigest()