Re: perl source code encryption



I Have gone through google and CPAN and finds some information over there .
can it be helpful for completion my purpose. U people please suggest.

If my program name is rundbload.pl

perl -MO=Bytecode,-H,-b,-k,orundbload rundbload.pl



http://search.cpan.org/~nwclark/perl-5.8.8/ext/B/B/Bytecode.pm



perl -MO=Bytecode,-H,-b,-k,-orundbload rundbload.pl







On Wed, Apr 30, 2008 at 11:01 AM, Chas. Owens <chas.owens@xxxxxxxxx> wrote:

On Wed, Apr 30, 2008 at 1:11 AM, Anirban Adhikary
<anirban.adhikary@xxxxxxxxx> 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 important skill a programmer can have is the ability to read.



Relevant Pages

  • Re: perl source code encryption
    ... I want to encrypt my perl source code. ... So how to encrypt all perl codes includes the modules. ... If all you are trying to do is add a hurdle for them to jump take a ...
    (perl.beginners)
  • Re: OT| U.S. democracy in peril
    ... >All commercial programs have provisions to be encrypted so as to ... >method used to encrypt the Diebold machines was a method called ... Moreover, because the KEY was IN the source code, ... >all Diebold machines would respond to the same key. ...
    (sci.space.policy)
  • Re: Encrypted software backups?
    ... If you have some way to escrow the decryption key, ... Another way is to simply release the source code to your clients under ... else with cryptography) requires knowing what you're doing in order to ... If you really want to encrypt your code like that, ...
    (sci.crypt)
  • Re: Locking code in VB 6.0
    ... If you mean the source code, there's nothing to keep people from looking at ... it unless you encrypt it. ... Use Winzip. ... strength" encryption and password protection. ...
    (microsoft.public.vb.general.discussion)
  • Re: how to hide source code
    ... If you truly encrypt, you'd have to have something on the client to decrypt. ... to understand your source code. ...
    (microsoft.public.frontpage.programming)