(fname)
return hash_num.hexdigest()
Method to calculate the SHA256 hash of a file
    :param fname: Path to file
    :return: SHA256 of the input file
Method to calculate the SHA256 hash of a file
    :param fname: Path to file
    :return: SHA256 of the input file
Method to calculate the SHA256 hash of a file : param fname : Path to file : return : SHA256 of the input file
def sha256(fname):
    """
    Method to calculate the SHA256 hash of a file
    :param fname: Path to file
    :return: SHA256 of the input file
    """
    hash_num = hashlib.sha256()
    with open(fname, "rb") as f:
        for chunk in iter(lambda: f.read(4096), b""):
            hash_num.update(chunk)
    return hash_num.hexdigest()
def sha256 ( fname ) : hash_num = hashlib . sha256 ( ) with open ( fname , "rb" ) as f : for chunk in iter ( lambda : f . read ( 4096 ) , b"" ) : hash_num . update ( chunk ) return hash_num . hexdigest ( )