Free Python script to check hash
by QUBIT_MATRIX - Saturday August 31, 2024 at 12:43 AM
#1
import sys, hashlib # function to get hash of a file def get_hash(file_path):     # create a hash object     h = hashlib.sha256()     # open file for reading in binary mode     with open(file_path, 'rb') as file:         # loop till the end of the file         chunk = 0         while chunk != b'':             # read only 1024 bytes at a time             chunk = file.read(1024)             h.update(chunk)     # return the hex representation of the digest     return h.hexdigest() # read parameter from command line file_path = sys.argv[1] # print the hash of the file print(get_hash(file_path))

Save as hash.py.
Usage example: hash.py software.exe
Output example: 9caf72e26bf50ba8f677b96d2b804860be51eb7d6753546a9a13a70b97a332e1

Feel free to refactor.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Free Gmail Spamming Website 4lezzio 145 7,694 10-27-2026, 12:22 PM
Last Post: Shreker
  [FREE] Database Searcher Telegram odanbtw 1,010 78,283 09-21-2026, 02:37 PM
Last Post: min1hOS
  python grabber ganabiogi 1 112 09-14-2026, 07:38 AM
Last Post: ditriqsa2623
  Python Script To Steal Any TikTok Username bs0d 302 14,926 07-10-2026, 12:21 AM
Last Post: saucymel
  Unlimited Free Cloud who 105 7,527 07-09-2026, 04:46 AM
Last Post: cookky1



 Users browsing this thread: