def sha256(filepath, blocksize=<NUM_LIT>):
hasher = hashlib.sha256()<EOL>fo = open(filepath, '<STR_LIT:rb>')<EOL>buf = fo.read(blocksize)<EOL>while len(buf) > <NUM_LIT:0>:<EOL><INDENT>hasher.update(buf)<EOL>buf = fo.read(blocksize)<EOL><DEDENT>return hasher.hexdigest()<EOL>
Generate SHA 256 hash for file at `filepath`