question archive 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
Subject:Computer SciencePrice: Bought3
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.