Python Forum
How to protect P/Cython Code against Reverse Engineering / Decompilation
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to protect P/Cython Code against Reverse Engineering / Decompilation
#10
Depends on how effective you need it to be. eg, against casual browsing of source code, or a determined hacker/reverse engineer. eg, even the most secure DRM schemes for AAA games or DVD or blueray or your console will be broken sooner or later by determined hackers, especially if your software is very popular.

For casual people browsing thorough their folders and encountering your code, pyc is probably fine, even though you get reverse engineer software for that, most casual end-users won't really bother.

For less casual people trying to reverse engineer, you may find software like this effective (disclaimer, haven't tested it myself):

https://github.com/Falldog/pyconcrete

If your software is distributed with a python executable, then you can alter the bytecode coding and decoding inside the python binary, so that it's a bit harder to reverse engineer with regular tools.

I think that's how dropbox protects their client-side source code with a few layers, eg:

http://blog.codepainters.com/2012/09/17/...opbox-way/

You may also find this article interesting:

http://bits.citrusbyte.com/protecting-a-...-codebase/

Compiling through Cython is probably a good all-rounder.

Alternately, use your Python code as a prototype, and then port from that to another programming language (eg Go Lang), and then compile and distribute that.
Reply


Messages In This Thread
RE: How to protect P/Cython Code against Reverse Engineering / Decompilation - by wizzardx - Oct-05-2017, 12:13 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Implementing a Civil Engineering Project In Python JoeDainton123 1 2,776 Oct-14-2020, 01:12 AM
Last Post: Larz60+
  How important is math for software engineering, and does it help in problem solving? larridde 4 3,108 Mar-10-2020, 03:25 PM
Last Post: wavic
  Do Machine Learning Employers care if I get a minor in Math on top of MS engineering AndrewScience 2 3,972 Oct-25-2017, 01:24 PM
Last Post: sparkz_alot
  What about Cython? panoss 5 7,004 Feb-03-2017, 10:21 PM
Last Post: nilamo

Forum Jump:

User Panel Messages

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