Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > Perl Beginners > Re: perl source...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 2 of 10 Topic 11006 of 11518
Post > Topic >>

Re: perl source code encryption

by chas.owens@[EMAIL PROTECTED] (Chas. Owens) Apr 30, 2008 at 01:31 AM

On Wed, Apr 30, 2008 at 1:11 AM, Anirban Adhikary
<anirban.adhikary@[EMAIL PROTECTED]
> wrote:
> Dear list
>  I want to encrypt my perl source code. I am using some modules in my
code.
>  Among them some are downloaded from CPAn as well as some are written by
 my
>  -self. So how to encrypt all perl codes includes the modules.
>
>  Thanks&Regards in advance
>  Anirban Adhikary

Short answer: It is a bad idea and there is no good way.

Long answer: You can encrypt the source if you want, but if you are
going to let a user run your code, perl will have to see unencrypted
code at some point and the user can capture the code at that point.
You could also obfuscate the code, but this has similar problems.  You
can even recover the source code from PAR archives and executables.

If all you are trying to do is add a hurdle for them to jump take a
look at PAR* and PAR::Packer**.  These have the benefit of adding
value in addition to making it harder to see the source.

* http://search.cpan.org/dist/PAR/lib/PAR.pm
** http://search.cpan.org/dist/PAR-Packer/lib/PAR/Packer.pm


-- 
Chas. Owens
wonkden.net
The most im****tant skill a programmer can have is the ability to read.
 




 10 Posts in Topic:
perl source code encryption
anirban.adhikary@[EMAIL P  2008-04-30 10:41:26 
Re: perl source code encryption
chas.owens@[EMAIL PROTECT  2008-04-30 01:31:53 
Re: perl source code encryption
questy@[EMAIL PROTECTED]   2008-04-30 07:17:31 
Re: perl source code encryption
Jenda@[EMAIL PROTECTED]   2008-04-30 15:53:05 
Re: perl source code encryption
anirban.adhikary@[EMAIL P  2008-04-30 11:22:27 
Re: perl source code encryption
chas.owens@[EMAIL PROTECT  2008-04-30 02:02:39 
Re: perl source code encryption
krahnj@[EMAIL PROTECTED]   2008-04-29 23:21:39 
Re: perl source code encryption
gowthamgowtham@[EMAIL PRO  2008-05-17 20:42:54 
Re: perl source code encryption
paul@[EMAIL PROTECTED] (  2008-05-17 21:00:20 
Re: perl source code encryption
chas.owens@[EMAIL PROTECT  2008-05-17 19:03:56 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Thu Jul 24 13:04:55 CDT 2008.