pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Andrew Sullivan <ajs@commandprompt.com>
To: pgsql-general@postgresql.org
Subject: Re: Obfuscated stored procedures (was Re: Oracle and Postgresql)
Date: Wed, 24 Sep 2008 11:44:42 -0400
Message-ID: <20080924154442.GJ58356@commandprompt.com> (raw)
In-Reply-To: <20080924150518.GA844@fetter.org>
References: <200809231952.m8NJqTP05977@momjian.us>
	<215184.36316.qm@web25807.mail.ukl.yahoo.com>
	<20080924150518.GA844@fetter.org>

On Wed, Sep 24, 2008 at 08:05:18AM -0700, David Fetter wrote:

> C is not magic obfuscation gear.  Anybody with a debugger can expose
> what it's doing. There have been math papers showing that it's
> impossible to hide the functionality of a piece of software based only
> on the ability to run it, so the entire prospect of obscuring the
> software's functionality when people can send arbitrary inputs to it
> is one of those "known-impossible" problems like the halting problem.

To be fair, one of the points that others are trying to make is not
"secure this function for real" but "secure this function enough to
make it a little costly."  Sure, someone with a debugger and probably
not much work could figure out what the function is.  If all you're
trying to do is make it expensive for dodgy software shops to re-use
your code, however, this is probably enough: the sort of person who
thinks re-using someone else's undocumented code is easier than
writing it from scratch is probably not going to go to the trouble of
really learning the code via debugging tools.  As a defence against
criminally lazy developers, "compliled C code" is probably good
enough.  (Of course, clever non-C code is probably also enough, in my
opinion, but obviously others disagree.)

A

-- 
Andrew Sullivan
ajs@commandprompt.com
+1 503 667 4564 x104
http://www.commandprompt.com/



view thread (31+ messages)  latest in thread

Message-ID: <20080924154442.GJ58356@commandprompt.com>
Permalink:  ../20080924154442.GJ58356@commandprompt.com/
Also on:    postgresql.org/message-id/20080924154442.GJ58356@commandprompt.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-general@postgresql.org
  Cc: ajs@commandprompt.com
  Subject: Re: Obfuscated stored procedures (was Re: Oracle and Postgresql)
  In-Reply-To: <20080924154442.GJ58356@commandprompt.com>
  References: <200809231952.m8NJqTP05977@momjian.us> <215184.36316.qm@web25807.mail.ukl.yahoo.com> <20080924150518.GA844@fetter.org> <20080924154442.GJ58356@commandprompt.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox