import hashlib


def str2hash(origin: str):
    """
    generate hash for current str
    :param origin: original str
    :return: hash string
    """
    url = origin.encode('utf-8')

    return hashlib.sha256(url).hexdigest()