X-Original-To: pgsql-admin-postgresql.org@postgresql.org Received: from localhost (mx1.hub.org [200.46.208.251]) by postgresql.org (Postfix) with ESMTP id 0C7419FA65C for ; Wed, 5 Jul 2006 10:10:47 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.208.251]) (amavisd-new, port 10024) with ESMTP id 95381-09 for ; Wed, 5 Jul 2006 10:10:35 -0300 (ADT) X-Greylist: domain auto-whitelisted by SQLgrey- Received: from ug-out-1314.google.com (ug-out-1314.google.com [66.249.92.170]) by postgresql.org (Postfix) with ESMTP id 507C99FA0EC for ; Wed, 5 Jul 2006 10:10:34 -0300 (ADT) Received: by ug-out-1314.google.com with SMTP id a2so2225596ugf for ; Wed, 05 Jul 2006 06:10:32 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=meaMVq5uSAQc3Fz/20iIK5gtNe0AJLO5XkGtYoC3t8v13ycLBDt0vY+IgJ3yJ86cECFL1iG0q3N+z0WkEdO3OTGgfFdURp+xtzixDg0Fbi4D03vlx1pRVhWufZ7ed3QMnJPp+4zR/sOwXlwSJKUaCxkFmgZAIjQayNMRGJLvcnc= Received: by 10.66.221.19 with SMTP id t19mr7782597ugg; Wed, 05 Jul 2006 06:10:32 -0700 (PDT) Received: by 10.67.98.11 with HTTP; Wed, 5 Jul 2006 06:10:32 -0700 (PDT) Message-ID: <36e682920607050610t1eb0a17fxe9b8d1c756919d20@mail.gmail.com> Date: Wed, 5 Jul 2006 09:10:32 -0400 From: "Jonah H. Harris" To: "Joshua D. Drake" Subject: Re: Wrap (obfuscate) code Cc: pgsql-admin@postgresql.org, "Aaron Bono" , rdeleonp@gmail.com, rdeleonp@yahoo.com In-Reply-To: <200607041656.19430.jd@commandprompt.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <36e682920607041552h2a1ca123if24fb0eb3d65cb16@mail.gmail.com> <36e682920607041553g28cc72b5p2a0dc5eec26a357a@mail.gmail.com> <200607041656.19430.jd@commandprompt.com> X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200607/24 X-Sequence-Number: 22270 On 7/4/06, Joshua D. Drake wrote: > Although everything you say is accurate Jonah, it will cost more money to > defang obfuscated code then non obfuscated code. Thus there is a financial > detterant to stealing. My bet is that it would take < 1 day to turn PL/pgSQL into a code generator, thereby making both the obfuscation and bytecode methods practically worthless. I agree with Tom... if you want to hide the code just write it in C. Of course, you could always take the "proprietary" shell script approach and hide the PL/pgSQL in C code so that, upon execution, the C code generates and calls the PL/pgSQL function and removes it on exit... but still, it wouldn't really be that hard to get around it. I've used Oracle's wrap utility on several products, but I've never really felt that it secured our code... just made it *very* difficult to decompile. I've never used obfuscation because I know how easy it is to hack one of the C or Java compilers to make the code much more readable and understandable. Just my 2 cents... but if someone wants to add obfuscation functionality to PL/pgSQL, by all means go for it. -- Jonah H. Harris, Software Architect | phone: 732.331.1300 EnterpriseDB Corporation | fax: 732.331.1301 33 Wood Ave S, 2nd Floor | jharris@enterprisedb.com Iselin, New Jersey 08830 | http://www.enterprisedb.com/