Menu

[Solved]Using Python Please Answer Following Please Provide Output Showing Code Works Thank Questi Q37205422

Using Python, please answer the following. Pleaseprovide the output showing that the code works. Thankyou!

Question:

Say you have an encrypted PDF that you have forgotten thepassword to, but you remember it was a single English word.

Instead you can write a program in Python that will decrypt thePDF by trying every possible English word until it finds one thatworks.

Download the text file from link 1 provided below:

Link 1:https://github.com/tempRUS/python/blob/master/dictionary.txt

This dictionary file contains over 44,000 English words with oneword per line. Create a list of word strings by reading thisfile.

Then loop over each word in this list, passing it to thedecrypt() method.

If this method returns the integer 0 , the password was wrongand your program should continue to the next password.

If decrypt() returns 1 , then your programshould break out of the loop and print the found password.

You should try both the uppercase and lower- case form of eachword.

You can test the code on the pdf file in link 2 below:

Link 2:https://github.com/tempRUS/python/blob/master/encrypted.pdf

Expert Answer


Answer to Using Python, please answer the following. Please provide the output showing that the code works. Thank you! Question: S… . . .

OR


Leave a Reply

Your email address will not be published. Required fields are marked *