Using python language to encrypt data. The algorithm that we implemented in this project is AES (Advance Encryption Standard) using CBC Mode. We Do Double Encryption of which data will be encrypted on the data so that we get a more secure type of data. We are very happy that someone will make some improvements or use the main logic of our code >.<
- File formats supported are only .png, .jpg and .jpeg image extensions.
- Encryption, decryption and key results are saved in the specified default folder.
- The key must be well hidden so that others cannot decipher it
- The program can only process one image/file.enc at a time. So if you want to encode different images you have to change the source image periodically
- Of course, you should clone this repo
git clone https://github.com/Lost1101/Image-Encryption-v.01.git
- Open editor that can open python file
- You should change the location in 'Image Encryption.py' file, depend of where you want to put the result
- Recommend to make separated folder for each result
- Before you running it, make sure the library (pycrypto & tkinter) installed
pip install pycryptodome
pip install tkinter
- Run the program with this command (the cli should inside the folder where 'Image Encryption.py' placed
python 'Image Encryption.py'
Encryption step:
- Press the button to search for images
- Enter the name of the .enc file.
- Enter the name of the key TXT file
- If yes, click Encrypt. encrypt
- The .enc file will be saved in the Encryption Result folder and the key will be saved in the Key folder.
Step description:
- Find the desired .enc file and restore the original image
- Enter a name for the decrypted result (e.g. = "hasil.jpg") and make sure the file extension is the same as the original file (e.g. if original = .jpg then decrypt The resulting extension must also be .jpg). . )
- Enter the hidden key in key.py (Keys variable).
- Press "Decryption!!" when done.
- The image is saved in the "decryption result" folder
The program is still in development, so all kinds of changes, optimizations and fixes are expected If you have any suggestions or comments, please express them in a more modern code format.
Thank you. Enjoy our program~