Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!newsfeed.xs4all.nl!newsfeed3a.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.017 X-Spam-Evidence: '*H*': 0.97; '*S*': 0.00; 'python,': 0.02; 'one?': 0.05; 'python': 0.11; 'mostly': 0.14; "wouldn't": 0.14; 'googled': 0.16; 'subject:python': 0.16; 'wrote:': 0.18; 'code.': 0.18; 'all,': 0.19; 'module': 0.19; 'thu,': 0.19; 'code,': 0.22; 'byte': 0.24; 'either.': 0.24; 'file.': 0.24; 'header:In-Reply-To:1': 0.27; 'message-id:@mail.gmail.com': 0.30; 'actual': 0.34; 'no,': 0.35; 'but': 0.35; 'received:google.com': 0.35; 'there': 0.35; 'library.': 0.36; 'so,': 0.37; 'easily': 0.37; 'step': 0.37; 'work?': 0.38; 'to:addr:python-list': 0.38; 'files': 0.38; 'pm,': 0.38; 'does': 0.39; 'to:addr:python.org': 0.39; 'release': 0.40; 'read': 0.60; 'company': 0.60; 'developed': 0.63; 'our': 0.64; 'great': 0.65; 'fact,': 0.69 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type; bh=cVMjRzfNv/npjTXHHE+G6tZVZtZyLyifnvib+KK2C3Q=; b=VRhfiEqxzr41zb+7mJ6i4QBrvR6DauWbf4dDoHNDMlYmlN4B4L+YQgHzW0lmEoMK4m HRiZE9bzODZ5lcQkM7V/M5SeG1W3O0JZ6jDCBTQ85vJGiE+MK9IY27g1fOsKnlWqCokW QQ1Gba9grnhHcYT6FkAu2a7tlI6vtp1lr7d0KIZkz+P0LqKrczhX5z7w/NS6f+r/bSQF CfBqYVVn2NVVEUwh/xu7566oPXrDYXXDMXiL8ipTXdtDxbn3Undur2XHhYz7LBqwoInM PaZVTuLNmXrDoU18lm+PZtifLtMlr/zr1d5CdgA0pmD2FuOLS6Sw6Ie2ICJ3qan6ymvE 2wjA== X-Received: by 10.66.141.144 with SMTP id ro16mr23568168pab.131.1397183063931; Thu, 10 Apr 2014 19:24:23 -0700 (PDT) MIME-Version: 1.0 In-Reply-To: References: From: Ian Kelly Date: Thu, 10 Apr 2014 20:23:43 -0600 Subject: Re: python obfuscate To: Python Content-Type: text/plain; charset=ISO-8859-1 X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 17 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1397183072 news.xs4all.nl 2893 [2001:888:2000:d::a6]:34858 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:70083 On Thu, Apr 10, 2014 at 7:48 PM, Tobiah wrote: > On 4/10/2014 6:29 PM, Wesley wrote: >> Hi all, Does python has any good obfuscate? >> >> Currently our company wanna release one product developed by python >> to our customer. But dont's wanna others see the py code. >> >> I googled for a while but mostly just say using pyc. Any better one? > > Does that work? If so, wouldn't that be a great solution? No, pyc files contain Python byte code, which can easily be disassembled -- in fact, the capacity to do this can be found in the "dis" module of the standard library. The result of disassembly is not valid Python, but it is not hard to read either. There are also decompilers available that can go the extra step and produce actual Python from the pyc file.