Question: Write a python program (.py) that traverses a directory and calculates the digital fingerprints (MD5, SHA1, and SHA256) of all the files in the directory.

Write a python program (.py) that traverses a directory and calculates the digital fingerprints (MD5, SHA1, and SHA256) of all the files in the directory. The program should ask the user for the name of the directory and whether the program needs to recursively go though all the other directories inside the given directory. The program proceeds to calculate the MD5, SHA1, and SHA256 values for each file and saves the result in an Excel document. The Excel document should have the following columns: file name, MD5, SHA1, and SHA256. Each directory should have a separate sheet. Make sure that your program handles special cases. The following link has a good introduction on how to work with Excel files: https://automatetheboringstuff.com/chapter12/

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!