It is not possible to keep the application code completely secret.
Honestly, if a group of dedicated and determined hackers (in a good way, not in a derogatory way) can crack the code signing security model for the PlayStation, then your application will not have a chance. Once you put your application in the hands of someone outside of your company, it can be redesigned.
Now, if you want to make some effort to complicate it, you can compile your built-in python executable file, cut out unnecessary modules, obfuscate the compiled python bytecode and wrap it in some malware rootkits that refuse to run your application if the debugger is running.
But you really have to think about your business model. If you see people who are passionate about your product as a threat, if you see people who are willing to take the time and effort to customize your product to personalize their experience as a danger, you may need to rethink your approach to security, Assuming If youโre not in the DRM business or have a similar model that includes squeezing money from reluctant consumers, consider developing an approach that includes sharing information with your users and sharing work with your product.
source share