Note: Ensure that you save the password(Cipher key) you set at the time of login. Because without it, you can’t decrypt your files in the future.
Open the command prompt in your PC(Windows OS)
First, set the command line location as per your python project location(using CD command) and then type the following command: ----python main.py
Then you have to provide your login credentials for encrypting your text or File. The sample image of the login screen is below:
Then you can see the main menu screen. Select your choice from the menu.
If you choose the first option(Encrypt text) and once the string is encrypted, you have to provide the filename to store your encryption string/message.
If you choose the second option(Encrypt File) and once the File is encrypted, you don’t have to provide the filename as a string to store your encrypted file. The code will automatically generate an encrypted file as Filename_enc.
·As mentioned above, you have to type the following command: “python main.py encrypt.”
As mentioned in the menu you have to type the following command: “python main.py decrypt”
Then you must have the same login credentials as encryption. Otherwise, you are not able to decrypt the image.
Then you can see the main menu screen. Select your choice from the menu.
If you choose the first option(Decrypt text), you have to provide the Filename you want to decrypt below.
If you choose the second option(Decrypt image), you must provide an encrypted Filename (Filename_enc). Don’t forget to mention “_enc” after the file name.
After the Execution process, the File will be in the decrypted format as File_name_Dec.jpg