On Sat, 14 Aug 2004, Franklin wrote:

I would run a perl script in my website which is hosted in one hosting service provider. Is there any means that I can use to encrypt my script so that it can't be viewed by others illegally?

Not really -- if your script is being served on someone else's server, you pretty much have to trust that other party to some extent.


This would apply with any language, by the way.

The best thing I can think of would be to use a silly module like Acme::Bleach, which "encrypts" your script so that "all the unsightly printable characters are removed". The problems with this include:

 * most hosting providers won't have any of the Acme:: modules

 * it wouldn't be very hard to turn an Acme::Bleach "cleansed" script
   back into something that could be read more conventionally (this
   will also be the case with most obfuscators for most languages --
   if the script still runs, then there's always a way to get back to
   either the original code or the functional equivalent thereof)

If you set the file permissions to prevent reading the file, this will protect you a little bit from random people poking around the system, but the owners of the system will almost always be able to read it.

Sorry.


-- Chris Devers [EMAIL PROTECTED] http://devers.homeip.net:8080/blog/

np: 'Don Quixote, part 2i'
     by Miguel de Cervantes
     from 'Don Quixote, part 2'

--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>




Reply via email to