Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Source Hiding

by r.joseph (Hermit)
on Jan 17, 2001 at 07:06 UTC ( #52441=perlquestion: print w/ replies, xml ) Need Help??
r.joseph has asked for the wisdom of the Perl Monks concerning the following question:

New Boss, New Problems. My new (and already annoying) boss adamently does not believe in the GNU, GPL or any Free Software/Open Source licesening scheme. Yet, he wants a large project written entirely in Perl (which he knows is notoriously open source) and requires that we lock up the source code somehow.

My question is probably pretty obvious: is there any reliable way to encrypt/hide/lock/make-disapear-into-thin-air Perl source so that when the program or system is distributed, the source is entirely hidden from prying eyes?

I realize that Perl is inherently open source and that, because it is intrepreted and not compilied, it is fairly difficult to keep the source from others. But if I know anything about the Perl community, it is that no matter what it is, there is some way (usually more than one way) to do it :-). Thanks a bunch all!

R.Joseph

Comment on Source Hiding
Re: Source Hiding
by elusion (Curate) on Jan 17, 2001 at 07:15 UTC
    There is one way that I could think of to do this: Distribute a binary version, using a program like perl2exe

    - p u n k k i d
    "Reality is merely an illusion, albeit a very persistent one." -Albert Einstein

Re: Source Hiding
by chipmunk (Parson) on Jan 17, 2001 at 07:31 UTC
Re: Source Hiding
by dws (Chancellor) on Jan 17, 2001 at 07:41 UTC
    One well-known (though not always well liked) approach to this in the Enterprise market is to protect the code with NDAs and license agreements with confidentially and though-shalt-not-peek clauses. It doesn't really prevent anyone from seeing your source code, but it may give them second thoughts about doing anything untowards with it.
Re: Source Hiding
by NodeReaper (Curate) on Jan 17, 2001 at 07:53 UTC

    Reason: Personal attack, abusive language, and trollish.

    For more information on this node visit: this

      Ok, first off, this is NOT the place for that. If you have a problem with him then talk to him somewhere else. Show some guts and at least get a user name before hand too. Second, vulgar language is not exactly great to have here. Please stop. Third, don't make fun of Perl. This sounds to me like Perl could be used for it and I think that he should use it. Clean it up next time or stay out. Later

      Update: Also, r.joseph, your somewhat wrong here too, this question has been asked and answered a million times, please search next time before you ask questions. Also see check if this works here.

      Wanna be perl hacker.
      Dave AKA damian
Re: Source Hiding
by premchai21 (Curate) on Apr 05, 2001 at 00:43 UTC
    What about Bleach from CPAN? It might offer you a little protection. It converts your code into whitespace which actually contains the encoded source. If you then keep the use line in, the module will decode the source and run it when the program is run. I didn't think my program would run after I Bleached it, until it ran, correctly... but when I viewed it in the editor it was all white...

    ...of course someone intent at getting at the source could still modify Bleach to allow them to view it, but you can protect your source from that with a restrictive license (as others have suggested).

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://52441]
Approved by root
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others studying the Monastery: (14)
As of 2014-11-26 16:56 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My preferred Perl binaries come from:














    Results (172 votes), past polls