- To encrypt a file put the file in file_to_encrypt folder, delete the previous available files. file should be a png image.
- open main.py file. there is a string named secret data.
- change that string to the data you want to encrypt and add in the image.
- run the main.py file
- your encrypted file should be present in encrypted_files folder.
To Decrypt Files
- if you want to check the decrypted file. copy or move that file in file_to_decrypt_and_check folder.
- go to main file again and uncomment the decode_files function and comment the encode_files function
- run the file.
- you will have the encrypted data printed in terminal read from that file.