This Code Encrypt and Decrypte files of directory that you gave for several times.
Keys are generate when run encrypt files and stored in key.txt in the same directory of the python file.
This code wrote with asyncio and threading together for fastest run that ever can make...
In this code, the main bottleneck is the I/O operations of reading and writing files, which is why concurrent.futures is used. However, if the code were doing more CPU-bound tasks, multiprocessing might be a better choice.
python3 is prefix for execute python files in linux.
py is prefix for execute python files in windows.
encrypt_decrypt_files.py [-h] {encrypt,decrypt} directory num_encryption
this is example of encrypting files for 3 time.
python3 encrypt_decrypt_files.py --mode encrypt --dir /home/user/directory --num-enc 3 --new-key true
this is example of decrypting files for 3 time.
python3 encrypt_decrypt_files.py --mode decrypt --dir /home/user/directory
For decrypt files you must enter exact the number time that you encrypt files.
-Python encryptor-File encryption-Encrypting files-Encrypt using python-Encrypt files using python-Python decryptor-File decryption-Decrypting files-Decrypt using python-Decrypt files using python