Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

perl code encryption

Status
Not open for further replies.

steam

ISP
Jul 17, 2000
51
IT
Hi

I'm looking for a good way for perl scripts encryption. This basically to prevent people from reading the source and copy it (i.e. clients are web developpers).

Any idea?
[sig][/sig]
 
Never thought about this before.......some ideas.....

First - don't put it where they can get it. Sorry, I know that is an obvious one, but valid none the less. I guess this is kind of hard to do if the code is going on their server.

Second - You could bundle the code into executables with perl2exe or activestate's perlApp, but using those can be a little bit of a pain.

Third - If you don't need the programs to be executable ( just storing them ) you could come up with a simple map for a-z, A-Z, 0-1, and some punctuation and convert the text. Save the converted versions. Just don't loose your key.

I'll be interested to see other responses.
[sig]<p> <br><a href=mailto: > </a><br><a href= > </a><br> keep the rudder amid ship and beware the odd typo[/sig]
 
I work for a web hosting company and the basic method used to keep our scripts private is to keep them in a cgi-bin directory. This is set so that anyone trying to access the scripts will have the script interpreted and will never see the code. Also, you should be able to include a section in your scripts that will only run the entire script if the referrer is a file that you have specified.

Hope this helps. [sig]<p>fortytwo<br><a href=mailto:will@hellacool.co.uk>will@hellacool.co.uk</a><br><a href= test site</a><br> [/sig]
 
Will,

Why don't you use the compiler or PerlApp then? [sig]<p>Mike<br><a href=mailto:michael.j.lacey@ntlworld.com>michael.j.lacey@ntlworld.com</a><br><a href= Cargill's Corporate Web Site</a><br>Making mistakes, so you don't have to. &lt;grin&gt;[/sig]
 
Because I am shared hosting tech support and the SA's won't give me that much access :-|

I have my own shared hosting account which I use to play around on:


Putting scripts in the cgi-local seems to be secure enough unless it needs to be *really* secure I guess. [sig]<p>fortytwo<br><a href=mailto:will@hellacool.co.uk>will@hellacool.co.uk</a><br><a href= test site</a><br> [/sig]
 
Ah..... Well, SA's often need a security breach or two before they actually admit the need for a change in procedures....
[sig]<p>Mike<br><a href=mailto:michael.j.lacey@ntlworld.com>michael.j.lacey@ntlworld.com</a><br><a href= Cargill's Corporate Web Site</a><br>Making mistakes, so you don't have to. &lt;grin&gt;[/sig]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top