Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic

Hide perl code

by balakrishnan (Monk)
on May 22, 2010 at 20:47 UTC ( #841206=perlquestion: print w/replies, xml ) Need Help??
balakrishnan has asked for the wisdom of the Perl Monks concerning the following question:

Hi Wise,
Please suggest me the better ways to hide the perl code and produce the executable file(when it doesnt intend to see by others).
Thanks, Bala.

Replies are listed 'Best First'.
Re: Hide perl code
by BrowserUk (Pope) on May 22, 2010 at 21:47 UTC

    Host the code as a service on your own machine, and only distribute code that gets the required parameters and data from the user.and connects to your machine to have it do the work Ship the answers back to the user. Make sure the hidden code uses taint and avoids string eval.

Re: Hide perl code
by lamprecht (Friar) on May 22, 2010 at 21:25 UTC

    see perldoc -qhide ,

    Cheers, Christoph
Re: Hide perl code
by eyepopslikeamosquito (Chancellor) on May 23, 2010 at 06:40 UTC
Re: Hide perl code
by Old_Gray_Bear (Bishop) on May 22, 2010 at 21:35 UTC

    I Go Back to Sleep, Now.


Re: Hide perl code
by ww (Archbishop) on May 22, 2010 at 22:05 UTC

    Write it inside <pre>...</pre> tags and make the sentence really long so whatever you're trying to hide falls off the right edge of the internet. Nobody will ever find it there (or, see Markup in the Monastery).

    • In the cookie jar.
    • In a magnetic keyholder in the mailbox.
    • Out on the back 40, under the 4th pole from the west end.

    You can put it there (for any selected value of "there") between executions...

Re: Hide perl code
by Khen1950fx (Canon) on May 22, 2010 at 22:59 UTC
Re: Hide perl code
by smishra123 (Initiate) on May 24, 2010 at 00:29 UTC
    If it is really important, compile critical pieces into a C dll and call from Perl. A C dll can be reversed also, but it takes more time. If you need still more anti reversing built in, there are tools that can make reversing object code much harder. You can use those in conjunction with your C dll. If it is really, really important for the reverser, they will reverse anything you do. You are just increasing the time and expense for them to reverse what you do. At some point you have to consider whether the effort you put in anti reversing is more gainfully spent in adding features to your program Reality: Legal solutions are out of reach of most small businesses in USA. No one gives a rat's ass about the legal notice you put on your program in large parts of the world. Best wishes Sanjay Mishra

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://841206]
Approved by graff
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (3)
As of 2018-06-21 03:24 GMT
Find Nodes?
    Voting Booth?
    Should cpanminus be part of the standard Perl release?

    Results (117 votes). Check out past polls.