import hashlib


def get_md5(str_):
    """
    hash function --md5
    :param str_:origin str
    :return:hex digest
    """
    md5 = hashlib.md5()
    md5.update(str_.encode('utf-8'))
    return md5.hexdigest()