1) I am working on a project on Raspberry pi. Once I finished my all stuff, I want my SD card/code to be properly locked. so that no one is able to read and write code just like we locked other small microcontrollers(AVR/PIC).Please help to do that.
2) I am generating logs in my code using logging library, will I be able to write logs if my SD card/code is write/read protected.
My objective is no one be able to steal my code or make modifications to the code. What should I do to protect my code from stealing and make changes into the code?
Someone correct me on this if I'm wrong but python being interpreted in most common implementations, I don't believe you're going to be able to make it unreadable.
Assuming that you are running linux on your raspberry pi, you might be able to get the tiniest bit of security using chmod 100 on it, but I do not know enough to confirm or deny this for sure.
Raspberry pi : Make RPI code Read and Write Protected