def sha256_of_file(path):
    """returns the SHA-256 hash in hex of the file"""
    h = hashlib.sha256()

    with open(path, 'rb') as fh:
        chunk = 0
        while chunk != b'':
            chunk = fh.read(512)
            h.update(chunk)

    return h.hexdigest()
dataset/ETHPy150Open datastax/cstar_perf/frontend/cstar_perf/frontend/lib/util.py/sha256_of_file/original