Skip to content
Permalink
Browse files
working version early tests removed
  • Loading branch information
ross committed Oct 25, 2021
1 parent a29c577 commit d5ee84bd6111ee68260e9d5ee053450e2460f2d4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
BIN +1.76 KB src/1000kversion
Binary file not shown.
@@ -80,11 +80,12 @@ def queryTable(hashValue,table, chainLength, hashFunc=targetHashFunction, guessF
h=hashValue
g=None
out=""
for j in range(i,chainLength):
for j in range(i,chainLength-1): # the -1 has been added to stop the proccess from hashing pasrt the end of the chain, so now the final hash is the real one
g=guessFunc(h,j, minLen=minLen, maxLen=maxLen, charset=charset)
h=hashFunc(g)
if debug: out+=f"({g}->{h}) "
if debug: print(out)
print(h)
if h in table:
if debug: print(f"Found hash in chain at position {i}, beginning with {table[h]}")
attempt= rebuildChain(table[h],hashValue, hashFunc, guessFunc, chainLength,minLen, maxLen, charset, debug=True)

0 comments on commit d5ee84b

Please sign in to comment.