Question: This is my python code to dictionary attach the formspring hash dump. I keep getting the following error: What am I doing wrong? import hashlib

 This is my python code to dictionary attach the formspring hash

This is my python code to dictionary attach the formspring hash dump. I keep getting the following error:

dump. I keep getting the following error: What am I doing wrong?

What am I doing wrong?

import hashlib def dictionarySHA2 (hash with open ("zeekvou.txt",errors- ignore") as rockyou: ntspen fils and isnexeunisede .axxersS for line in rockyou:# go line by line ~ for number in range (100): temp # line. strip().encode saltstring-[str (number).zfill (2)] saltFirst-(saltstring + line) hashed- (hashlib.sha256 (saltFirst)).hexdigest) if hashed hash: return line saltLast-(temp+ saltString) hashedl-(hashlib.sha256 (saltLast)).hexdigest if hashedihash: return line rockyou.close () return None def formspring with open("Eormspring.txt") as infile: with open("fornspring decrypted.txt","was outfile: for i, line in enumerate (infile. readlines(), 0): # start reading line by line if i500: limit to 500 lines because of time limit temp = line. strip() # save hash from line into temp unhashed-dictionarySHA2 (temp) # run function to compare to password list if unhashed: outfile.writelines (line.strip) + unhashed) outfile.close () infile.close () f name main formspring () import hashlib def dictionarySHA2 (hash with open ("zeekvou.txt",errors- ignore") as rockyou: ntspen fils and isnexeunisede .axxersS for line in rockyou:# go line by line ~ for number in range (100): temp # line. strip().encode saltstring-[str (number).zfill (2)] saltFirst-(saltstring + line) hashed- (hashlib.sha256 (saltFirst)).hexdigest) if hashed hash: return line saltLast-(temp+ saltString) hashedl-(hashlib.sha256 (saltLast)).hexdigest if hashedihash: return line rockyou.close () return None def formspring with open("Eormspring.txt") as infile: with open("fornspring decrypted.txt","was outfile: for i, line in enumerate (infile. readlines(), 0): # start reading line by line if i500: limit to 500 lines because of time limit temp = line. strip() # save hash from line into temp unhashed-dictionarySHA2 (temp) # run function to compare to password list if unhashed: outfile.writelines (line.strip) + unhashed) outfile.close () infile.close () f name main formspring ()

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!