Python Forum
Secure deploy the code without providing the implementation
Thread Rating:
  • 1 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Secure deploy the code without providing the implementation
#1
Hi fellows, how can I deploy my own library created in Python on Windows or Linux without providing the source code. The reason is that I want to use it in future as production code. So in my case I would only like to provide the function or method delarations and not the implementation. How can I achieve this security deployment? I know that there is a pyc file which encrypts the code, but I have read that it is possible with some expense to dencrypt it. That is not what I need.
Reply
#2
if something is to run something that is encrypted, there has to be a way to decrypt it. if someone is dedicated to the task (money often achieves this), any code in any form that is runnable can be reversed it some form of source code. there are many decompilers out there for compiled languages. if it possible to run it, it is possible to see all the steps in it, making it possible to reconstruct it in nearly every language. imagine your implementation goes back to source as Perl.

pyc files are not really encrypted. they are just in a form that is easy for computers to interpret which is harder for humans to interpret.
Tradition is peer pressure from dead people

What do you call someone who speaks three languages? Trilingual. Two languages? Bilingual. One language? American.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Pycharm - method to deploy finshed project with AppImage Murray 0 2,137 Jul-28-2020, 05:43 AM
Last Post: Murray
  Code review needed for a basic repl implementation RickyWilson 2 2,874 Dec-27-2017, 02:20 PM
Last Post: mpd

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020