Question: Practice Python tools to encrypt and decrypt files; Account for missing files; Task: Consider the Python .py file(s) provided with this assignment on Blackboard and

  • Practice Python tools to encrypt and decrypt files;
  • Account for missing files;

Task:

Consider the Python .py file(s) provided with this assignment on Blackboard and modify the code to meet the following requirements:

  • Complete the main function that will run whenever the module is called;
  • The main function should interact with the user and allow the user to specify whether he or she want to encrypt or decrypt;
  • The user should be allowed to choose between 1) the insecure mode where the encryption key file is saved for usage in decryption or 2) a more secure way where the key is generated whenever it is used through a passphrase;
  • The user should be allowed to input the file to encrypt or decrypt;
  • When a user input the file to encrypt, the program should identify the file extension explicitly. That same extension should be added to the encrypted file and the decrypted file.
  • The program should be able to run from the command line interface and the python shell. Demonstrate both and submit screenshots of your demonstration.

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!