Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:

I have to maintain some perl code that a former employee wrote, it is encrypted using Filter. Is there any way I can use the module or any other method to decrypt the code itself so I can make updates to it?
use Filter::decrypt;
And...
use Filter::decrypt2;
Are the first lines in all of the work he's done.

Replies are listed 'Best First'.
Re: Encrypted Code
by Zaxo (Archbishop) on Oct 26, 2001 at 03:38 UTC

    perldoc Filter::decrypt says:

    Assuming you haven't taken any steps to spot when the compiler is in use and you have an encrypted Perl script called "myscript.pl", you can get access the source code inside it using the perl Compiler backend, like this perl -MO=Deparse myscript.pl Note that even if you have included the BOOT: test, it is still possible to use the Deparse module to get the source code for individual subroutines.
    among other things. Hope that helps.

    After Compline,
    Zaxo

Re: Encrypted Code
by joealba (Hermit) on Oct 26, 2001 at 04:43 UTC