Skip to content

Commit 6ea45b8

Browse files
committed
fixed glitch with SHA 1
1 parent bc54f4d commit 6ea45b8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

passwordCracker.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -40,9 +40,9 @@ def getWord(self, word : str):
4040
if(self.verbose):
4141
print(word+"\n")
4242
if(self.hashNumber == passwordCracker.SHA1):
43-
return hashlib.sha1(bytes(guess, 'utf-8')).hexdigest()
43+
return hashlib.sha1(bytes(word, 'utf-8')).hexdigest()
4444
if(self.hashNumber == passwordCracker.MD5):
45-
return hashlib.md5(bytes(guess, 'utf-8')).hexdigest()
45+
return hashlib.md5(bytes(word, 'utf-8')).hexdigest()
4646
return word
4747

4848
def setAppendMask(self, am: str):

0 commit comments

Comments
 (0)