This is a library to be used for encrypting parts of a code under development. The code that needs to be encrypted must be put inside a python module, not main.py
The flow of the encryption is as such:
- Load the library into main.py
- Pass in the the names of the modules that needs to be encrypted
- After the encryption commencement, create the key to encrypt the modules and keep it in a .pyc file locally, and replace the modules with the encrypted modules. (For development, backup the folders first into a separate directory)
The flow of the decription is as such:
- Run the encryption flow first
- Load the library into main.py
- have a list of encrypted modules to decrypt
- make a loop, to loop over the list of encrypted modules, inside the loop, there is a decrypt function, a tempfile creation function, and a section to load in the decrypted modules from the tempfile