On Thu Aug 28 03:41:45 2008, erikweidel wrote:
Show quoted text> When creating a simple exe file with this command
> "pp -M Filter::Crypto::Decrypt -f Crypto -o testhello.exe
> testhello.pl"
> and starting the exe, there is an unencrypted testhello.pl in the
> directory
> C:\Dokumente und
> Einstellungen\eweidel\...\par-eweidel\cache-
> d1492d4a8e08a9e745068a62fa998b347eb19f4\inc\lib
> !
> The file in ...\inc\script is encrypted correctly.
I'm unable to reproduce this problem.
I created a simple "testhello.pl" script containing just:
print "Hello, world.\n";
and pp-ed it using the same command as you:
pp -M Filter::Crypto::Decrypt -f Crypto -o testhello.exe testhello.pl
When I run it, it creates a cache folder under "C:\Documents and
Settings\shay\Local Settings\Temp\par-shay". That contains an encrypted
inc/script/testhello.pl, but no testhello.pl at all in inc/lib.
This is as I would expect. I'm surprised that you're getting a
testhello.pl in inc/lib at all, never mind whether it is encrypted or not!
The contents of the cache folder should mimic the contents of the
testhello.exe, which is actually a ZIP file, and can be opened with
programs like WinZip. If open my testhello.exe in WinZip then I find
that it does indeed contain an encrypted inc/script/testhello.pl and no
inc/lib/testhello.pl. What does your testhello.exe contain?
Try (manually) clearing out your "C:\Dokumente und
Einstellungen\eweidel\...\par-eweidel" directory, then running
testhello.exe again, to ensure that it is creating a fresh cache folder.
Does it still contain inc/lib/testhello.pl this time?
If this is still a problem for you then it is probably down to the PAR
framework itself, rather than my PAR::Filter subclass. My subclass
simply gets called by the framework for a series of files, so if it
isn't encrypting something that it should be then it probably means that
the PAR framework hasn't asked my filter to encrypt it.
Try repeating the exercise with another PAR::Filter subclass, e.g. the
Bleach filter that comes with PAR. If you still get two copies of
testhello.pl, one "bleached" and the other not, then it is definitely a
problem with the framework rather than with individual filters.
What versions of things are you using?
I've tried with two different set-ups, and can't reproduce your problem
either way:
perl-5.8.6
PAR-0.85
PAR-Dist-0.07
PAR-Packer-0.12
perl-5.8.8
PAR-0.976
PAR-Dist-0.31
PAR-Packer-0.976
HTH,
Steve