in reply to Re: Password Protect a Perl Script
in thread Password Protect a Perl Script

One could compile one's own copy of Perl, modifying it in such a way that it decrypts encrypted scripts before doing its usual thing. With asymmetric encryption one could compile the private key into the executable. The command line perl --key would print the public key that one has to use to encrypt the scripts. Or even better, perl --encrypt script.pl would encrypt the script.

Replies are listed 'Best First'.
Re^3: Password Protect a Perl Script
by MidLifeXis (Monsignor) on Oct 29, 2013 at 12:29 UTC

    Just make sure to deny loading any of the optree dumper modules, things that rewind __DATA__, etc. There are many avenues for attacking this setup. At best, it raises the bar a bit.

    --MidLifeXis