Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW

Protect source code

by Andu (Initiate)
on Jun 10, 2003 at 13:03 UTC ( #264654=perlquestion: print w/replies, xml ) Need Help??
Andu has asked for the wisdom of the Perl Monks concerning the following question:

Hiya all you monks, wisdom needed: how do I protect the code from (too) curious eyes, besides deleting it :) ? Some kind of source scrambling would do, I read som'tg about uuencode + compress + perlfilter, still confused about all these (not really: I understood the part about ROT13 :) Some small example? A clue? Anything? HEELP?.. Thanks!

Replies are listed 'Best First'.
Re: Protect source code
by Mr. Muskrat (Canon) on Jun 10, 2003 at 13:24 UTC
Re: Protect source code
by EvdB (Deacon) on Jun 10, 2003 at 13:14 UTC
    This node, Why is it bad to hide the source?, goes inte quite alot of detail as to why it may not be a great idea .

    If you are trying to hide the code from others on the same machine (ie cgi) then it is harder. You could try to set the permissions such that the code is still visible to those who need it, and not to those who don't.

    The problem with obfuscating it is that once you have de-obfuscated one of your scripts then it is trivial to do it to other scripts obfuscated in the same way.

    Not an answer to your question though...

    --tidiness is the memory loss of environmental mnemonics

Re: Protect source code
by Skeeve (Vicar) on Jun 10, 2003 at 13:13 UTC
    You can't protect it from too curious eyes. But you might want to obfuscate your code ;-)

    And then there should also be some "compilers" for perl.

    But too curious eyes won't hinder that for long, I think.

    You might also want to search here or look here

Re: Protect source code
by Anonymous Monk on Jun 10, 2003 at 13:29 UTC
    Source hiding techniques can be broken, but so can legs. Try a baseball bat, and let us know how it goes.
Re: Protect source code
by novitiate (Scribe) on Jun 10, 2003 at 15:00 UTC
    Lord give me the strength to....serioulsly, if i had a rep
    point for every time i've seen this question. all questions
    deserve an answer though:

    From "curious eyes"....try Acme::Bleach
    From "downright determined eyes"....try not programming


    "...goodnight you princes of main(e)"  --The Cider House Rules
Re: Protect source code
by bm (Hermit) on Jun 11, 2003 at 09:21 UTC
    wisdom needed: how do I protect the code from (too) curious eyes, besides deleting it

    Sure, that is easy:

    chmod 500 file


Log In?

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

How do I use this? | Other CB clients
Other Users?
Others surveying the Monastery: (10)
As of 2016-10-26 11:21 GMT
Find Nodes?
    Voting Booth?
    How many different varieties (color, size, etc) of socks do you have in your sock drawer?

    Results (340 votes). Check out past polls.