import hashlib


def encrypt(str):
    """
    Encrypt the string using SHA256
    :param str: string to be encrypted
    :return: SHA256 encrypted string
    """
    encrypt_str = hashlib.sha256(str.encode()).hexdigest()
    return encrypt_str