vimspector/support/gadget_upgrade/checksum.py
Ben Jackson f1e2c12e5b Update codelldb
Add a way to checksum downloads and a little guide to updating gadgets
2021-08-02 17:23:32 +01:00

13 lines
281 B
Python
Executable file

#!/usr/bin/env python3
import hashlib
import sys
def GetChecksumSHA254( file_path ):
with open( file_path, 'rb' ) as existing_file:
return hashlib.sha256( existing_file.read() ).hexdigest()
for arg in sys.argv[ 1: ]:
print( f"{ arg } = { GetChecksumSHA254( arg ) }" )