Path: csiph.com!fu-berlin.de!uni-berlin.de!not-for-mail From: Ben Finney Newsgroups: comp.lang.python Subject: Obfuscating Python code (was: Is there a way to create a shared object file using PyInstaller?) Date: Tue, 15 Mar 2016 16:45:11 +1100 Lines: 15 Message-ID: References: <570f76f8-1e4a-421f-b1ff-4fba72f06a56@googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Trace: news.uni-berlin.de vl6kph58MpJBpWvD+vXRTwPKbYHFPiQ8QzRsa1eBf+Hw== Cancel-Lock: sha1:EaF9NJ3Q/NP6FhvfOnAm7VEGNJ8= Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.001 X-Spam-Evidence: '*H*': 1.00; '*S*': 0.00; 'subject:Python': 0.05; 'that?': 0.05; 'subject:code': 0.07; 'subject:file': 0.07; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; 'subject:create': 0.09; 'subject:using': 0.09; 'python': 0.10; 'exposes': 0.16; 'received:80.91.229.3': 0.16; 'received:io': 0.16; 'received:plane.gmane.org': 0.16; 'received:psf.io': 0.16; 'subject:?)': 0.16; 'subject:object': 0.16; 'script.': 0.18; 'either.': 0.22; 'embedding': 0.22; 'header:User-Agent:1': 0.26; 'header:X-Complaints-To:1': 0.26; 'code': 0.30; "can't": 0.32; 'good.': 0.32; 'file': 0.34; 'but': 0.36; 'to:addr:python-list': 0.36; 'subject:: ': 0.37; 'received:org': 0.37; 'why': 0.39; "didn't": 0.39; 'to:addr:python.org': 0.40; 'your': 0.60; 'digital': 0.63; 'subject:there': 0.66; 'computers': 0.70; '_o__)': 0.84; 'received:125': 0.84; '\xe2\x80\x9cthe': 0.93 X-Injected-Via-Gmane: http://gmane.org/ X-Gmane-NNTP-Posting-Host: jigong.madmonks.org X-Public-Key-ID: 0xAC128405 X-Public-Key-Fingerprint: 517C F14B B2F3 98B0 CB35 4855 B8B2 4C06 AC12 8405 X-Public-Key-URL: http://www.benfinney.id.au/contact/bfinney-pubkey.asc X-Post-From: Ben Finney User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.4 (gnu/linux) X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Xref: csiph.com comp.lang.python:104919 Swanand Pashankar writes: > Embedding a Python file in C code works, but it exposes your Python > script. Didn't find any free fool-proof way to obfuscate Python code > either. What exactly is it you want to prevent? Why do you think obfuscating the code will achieve that? -- \ “The internet's completely over.… Anyway, all these computers | `\ and digital gadgets are no good. They just fill your head with | _o__) numbers and that can't be good for you.” —Prince, 2010-07-05 | Ben Finney