Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation

Included scripts did not encrypt using pp

by jowe (Sexton)
on Dec 01, 2015 at 16:50 UTC ( #1149049=perlquestion: print w/replies, xml ) Need Help??
jowe has asked for the wisdom of the Perl Monks concerning the following question:

Hello PerlMonks, I am using

  • PAR::Packer 1.028
  • Filter::Crypto 2.07
in a 'Windows 7 (32bit)', 'Strawberry' environment.

The task: pp should produce an encrypted executable 'foo.exe' from multiple source files using the following command:

pp -f Crypto -M Filter::Crypto::Decrypt -o foo.exe
'' includes other files (, via 'do'-statements.

foo.exe as an interactive program is being build and executed without any problems. However, during execution I had a closer look at the temporary runtime directory structure. I found, that '' is encrypted whereby the other '.pl'-files ( and are not encrypted at all.

Could you please advise, what to do to have all '.pl'-files encrypted.

Thank you very much for your help - Jo

Replies are listed 'Best First'.
Re: Included scripts did not encrypt using pp
by GotToBTru (Prior) on Dec 01, 2015 at 17:30 UTC

    What in the documentation led you to expect the other programs would be encrypted? Why would you want them to be ?

    Dum Spiro Spero
Re: Included scripts did not encrypt using pp (libs aren't scripts)
by Anonymous Monk on Dec 01, 2015 at 23:20 UTC

    :) Scripts are files you list like pp ... they end up in parfoo.exe/inc/script and they are crypto encrypted

    If you just use pp... only is encrypted , the others end up in parfoo.exe/inc/lib/ and they are not encrypted

      This is exactly what I expected - but having more than 1 script specified like
      pp ....
      pp will try to generate multiple executables and will fail.

      I was under the impression that the '-f'-option will decrypt ALL scripts automatically. Maybe I did not understand the pp-syntax in full detail and I overlooked something.

      Thanks - Jo
        Let me add one remark:

        All additional pl-files ( and are subroutines from other applications. That's why there are separate files.

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://1149049]
Approved by choroba
[Corion]: Hi choroba! Yay, day off sounds great! I hope the performances of the kids go well!
[Corion]: I think I'm overdesigning things again. I want to export(later, synchronize) data from Google Keep, by scraping the HTML. And I'm thinking of automating this by having a canary note whose text my program knows and from which it can determine the ...
[Corion]: ... surrounding HTML to scrape all the other notes. Maybe I should better look at dumping all the requests that pass between Google and my "browser" instead.

How do I use this? | Other CB clients
Other Users?
Others cooling their heels in the Monastery: (7)
As of 2017-12-12 08:49 GMT
Find Nodes?
    Voting Booth?
    What programming language do you hate the most?

    Results (327 votes). Check out past polls.