-
-
Save programmer-666/365472d36b632179af7e32dd46e8a332 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- coding: utf-8 -*- | |
# bhc.py | |
import hashlib, sys | |
def TakeWords(filename=str(sys.argv[1])): | |
with open(filename) as fopen: | |
output = fopen.read().splitlines() | |
return output | |
def CreateHash(word = "null"): | |
return hashlib.sha512(word.encode()).hexdigest() | |
# fonksiyonlarin tanimlanmasi | |
f, h = False, sys.argv[2] | |
for i in TakeWords(): | |
if CreateHash(i) == str(h): | |
word = i | |
f = True | |
break | |
if f: | |
print(f"Hash Cracked: {word}") | |
else: | |
print("Hash not cracked") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment