HASH=list() for i in range(256): k=i for j in range(8): if k%2 == 1: k = k^0xdeadc0de k = k//2 HASH.append(k) def compute_hash(S): H = 0xffffffff for C in S: H = (H >> 8) ^ HASH[(H & 0xff) ^ ord(C)] H = H ^ 0xffffffff return "0x{:8x}".format(H) table = (("0", "1", "2", "3", "4", "5", "6", "7", "8", "9"), ("", "a", "b", "c", "d", "e", "f", "g", "h", "i", "j", "k", "l", "m", "n", "o", "p", "q", "r", "s", "t", "u", "v", "w", "x", "y", "z"), ("", "a", "b", "c", "d", "e", "f", "g", "h", "i", "j", "k", "l", "m", "n", "o", "p", "q", "r", "s", "t", "u", "v", "w", "x", "y", "z"), ("", "a", "b", "c", "d", "e", "f", "g", "h", "i", "j", "k", "l", "m", "n", "o", "p", "q", "r", "s", "t", "u", "v", "w", "x", "y", "z"), ("", "a", "b", "c", "d", "e", "f", "g", "h", "i", "j", "k", "l", "m", "n", "o", "p", "q", "r", "s", "t", "u", "v", "w", "x", "y", "z"), ("", "a", "b", "c", "d", "e", "f", "g", "h", "i", "j", "k", "l", "m", "n", "o", "p", "q", "r", "s", "t", "u", "v", "w", "x", "y", "z") ) for i in table[0]: for j in table[1]: for k in table[2]: for l in table[3]: for m in table[4]: for n in table[5]: password = i+j+k+l+m+n # print(password) if compute_hash(password) == "0xbed3414a": print(password)