Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris

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
[Corion]: ... that's not that great for quasi-disposable devices ;)
[Eily]: can't you just remote connect to the linux machine ?
[marto]: IIRC the hiemdal suite made life much easier on windows, and people on XDA developers put out released of windows only pages for adb that made it less of a pain
[marto]: Eily you can't remote connect the physical device via USB ;)
[Corion]: Eily: Sure, that's what I do, but some things you need to do on the Android device directly, like when navigating the bootloader :-)
[Eily]: marto you just need a longer cable :P
[Corion]: marto: Yeah, but I'm somewhat wary of installing random USB drivers downloaded from , Google Drive or whatever, so Linux wins there due to there being no conflicts and me just having to edit one text file in the worst case, to add the USB vendor
[hippo]: Long USB cable FTW.
[Corion]: Eily: I've thought of that, but I don't like running long cables through the appartment because sooner or later I'll trip over it, pulling at least one device off its stand :)
[marto]: hmm, may have to patch CPAN::Meta to move from search.cpan to metacpan in the META.json/yml files

How do I use this? | Other CB clients
Other Users?
Others about the Monastery: (10)
As of 2018-05-23 09:16 GMT
Find Nodes?
    Voting Booth?