MetrosCrypt is for file encryption/decryption based on the cryptocode algorithm.
It is written in Python 3.10.4 with the PyQt5 graphics library.
The program is distributed in forms as an open source python file.
git clone https://github.com/John-MetrosSoftware/MetrosCrypt
cd MetrosCrypt
pip3 install -r requirements.txt
python3 MetrosCrypt.pyw
- Quit - Exiting the program.
This list contains two elements. Select the item you need.
To decrypt the file, you do not need to re-enter the password, but in encryption it is needed to avoid problems.
- Encryption file
- Decryption file
Input file input field if the file is found, the program will try to get the value of this file after decrypting or encrypting this value after writing it to the output file.
If the input file is not found, then an error about not finding the input file will be displayed in red from below.
It is important to note that if the output file is not found, the program will ask can the resulting output file be recorded?
- You can enter the path to the file manually or double-click on the field or click on the button next to it.
The output file is the file in which the encrypted or decrypted value will be written, it is not so necessary so that the value can be written to the output file.
- You can enter the path to the file manually or double-click on the field or click on the button next to it.
The password is needed to encrypt or decrypt the contents of the file.
If the decryption password is incorrect, an error will be displayed in red at the bottom.
- Password can be a void.
- You can also click on the button that is on the input line and show or hide password.
Summing up the password is a line in which the password must match the password input line.
If the passwords are not equal to each other, an error will be displayed in red at the bottom.
- You can also click on the button that is on the input line and show or hide password.
This checkbox is responsible for not recording the result of encryption or decryption, but simply displaying it on the screen.
Here the output file is not needed and it will not be needed.
If the contents of the file cannot be encrypted or decrypted, an error will be displayed in red at the bottom.
The example uses text test
and password 12345678
.
In the title of the program you can notice the format:
<action> — <file_path> — <program_info>
Element | Designation |
---|---|
action | Your choice of action to encrypt and decrypt. |
file_path | Path to input file. |
program_info | Information about the program itself. |
There are two buttons at the bottom. Depending on the action you choose to encrypt or decrypt the text of the first button, it will change, it is responsible for launching the algorithm. The second button is responsible for closing the main window.
If everything is successful, a window with a message will open.
- Apparently this file cannot be encrypted...
- Apparently this file cannot be decrypted...
Program could not find the input file.
- The input file could not be found...
If the program could not find the output file.
- If you select yes then the result of encryption or decryption is recorded exactly the input file.
- If you select no, the window will simply close.
If, when comparing data from the password input lines and its confirmation, they are not equal to each other.
- Passwords don't match...
- Failed to record the result.
If you have any problems with the program, write an email to the address below.
This version 1.2
is a version without saving any settings or changing them.
All software is provided in English with executable files, these parameters cannot be changed.
I usually compile my projects using the pyinstaller compiler with the following parameters:
pyinstaller -F MetrosCrypt.pyw
Adding an icon for the executable file. You can use yours.
pyinstaller -F --icon=icon.ico MetrosCrypt.pyw
The icon 'icon.ico' can be downloaded from the link.