Encrypt mpy files #12418
Replies: 3 comments 6 replies
-
I am not sure it might help, #8706 |
Beta Was this translation helpful? Give feedback.
-
@JessicaMBG If you do a search of the old forum you will find multiple discussions of protecting source code. |
Beta Was this translation helpful? Give feedback.
-
I assume you have an encrypted mpy file in your Flash VFS, say 'xx.mpz'. What you are asking is how to What we need to do is:
Now this "something" must be a VFS. There was a post in stackoverflow that told us how to do this, where this "something" is a RAM-based VFS. https://stackoverflow.com/questions/69153584/in-micropython-how-do-i-load-a-module-from-a-string This may be a solution to your problem without the need to encrypt the entire flash drive. |
Beta Was this translation helpful? Give feedback.
-
Can I encrypt the file system and keep running my code as my flash is encrypted?
I am willing to encrypt the firmware of a ESP32 WROVER for security purposes but I am not using the ESP IDF. I built my codes, compiled into mpy, and embedded them using ampy. The main.py should keep the routine running, but once I turn on the encryption It does not
From what I've seen, the files to access the built-in libs should also be encrypted or It won't be able to access data, correct me if I'm wrong, please
So the whole problem is: I need the scripts to keep running after I encrypt the flash memory, How do I do that?
Would appreciate any help :)
Beta Was this translation helpful? Give feedback.
All reactions