Welcome to HBH! If you have tried to register and didn't get a verification email, please using the following link to resend the verification email.

python help


ghost's Avatar
0 0

well no one wants to respond to the old thread so i guess i have to make a new one.

OK i am working on a program that encrypts/encodes and decrypts/decodes and a it has a md5 brute forcer that reads from a text file. i have it set so it can encrypt multiple strings at once and return them all but when i want to decrypt more than one it only returns the last one.

here is the md5 part of the code

decrypter

        
        path1 = raw_input("Enter the path for the Hash ")
        print ""
        path2 = raw_input("Enter the path for the Word List ")
        
        path1 = open(path1, 'r')
        path2 = open(path2, 'r')
        
        path1 = path1.readlines()
        path2 = path2.readlines()

        for y in path1:
           md = y[0:len(y)]
       
           for x in path2:
            theHash = md5.new(x[0:len(x)-1])
            theHash = theHash.digest()
            theHash = theHash.encode("hex")
        
            if(theHash==md):
               print "Your hash/hashes "
               print ""
               print md+" = "+x
               print ""```

any help would be appreciated