Initial commit
This commit is contained in:
11
libs/hashchecker.py
Normal file
11
libs/hashchecker.py
Normal file
@@ -0,0 +1,11 @@
|
||||
import hashlib
|
||||
|
||||
def hashcheck(fileToCheck):
|
||||
with open(fileToCheck, "rb") as f:
|
||||
digest = hashlib.file_digest(f, "sha256")
|
||||
file_hash = digest.hexdigest()
|
||||
print(file_hash)
|
||||
|
||||
hashcheck("ha.txt")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user