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

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 5.22.0.1' 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 fool.pl
'foo.pl' includes other files (foo1.pl, foo2.pl) 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 'foo.pl' is encrypted whereby the other '.pl'-files (foo1.pl and foo2.pl) 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 ... foo.pl bar.pl baz.pl they end up in parfoo.exe/inc/script and they are crypto encrypted

    If you just use pp... foo.pl only foo.pl 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 .... foo.pl foo1.pl foo2.pl
      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 (foo1.pl and foo2.pl) are subroutines from other applications. That's why there are separate files.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://1149049]
Approved by choroba
help
Chatterbox?
[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
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    What programming language do you hate the most?




















    Results (327 votes). Check out past polls.

    Notices?