import hashlib


def checkFileHash(target: str) -> str:
    """
    Computes SHA256 hash of a file

    Parameters:
        target (str): Full path of file
    Returns: 
        (str): HEX String of Hash
    """
    BUF_SIZE = 32768 # Read file in 32kb chunks
    sha256 = hashlib.sha256()
    with open(target, 'rb') as f:
        while chunk := f.read(BUF_SIZE):
            sha256.update(chunk)
    return sha256.hexdigest()