Skip Menu |

This queue is for tickets about the Filter-Crypto CPAN distribution.

Report information
The Basics
Id: 114804
Status: open
Priority: 0/
Queue: Filter-Crypto

People
Owner: Nobody in particular
Requestors: frank [...] digennaro.com
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



Subject: Encrypted file missing the #!/usr/bin/perl line
Date: Sun, 29 May 2016 11:01:46 -0400
To: <bug-Filter-Crypto [...] rt.cpan.org>
From: "Frank DiGennaro" <frank [...] digennaro.com>
In module version 2.07, I can encrypt a Perl script using the crypt_file program, and can run the encrypted script by typing "perl encrypted.pl". However, encrypted.pl is missing the shebang on the first line. Manually adding the shebang in the file causes the script to throw the error "Can't continue decryption: Can't decode odd-numbered (273-byte) length hexadecimal text".
On Sun May 29 11:02:09 2016, cbbs70a wrote: Show quoted text
> In module version 2.07, I can encrypt a Perl script using the crypt_file > program, and can run the encrypted script by typing "perl encrypted.pl". > However, encrypted.pl is missing the shebang on the first line. Manually > adding the shebang in the file causes the script to throw the error "Can't > continue decryption: Can't decode odd-numbered (273-byte) length hexadecimal > text". >
Thanks for the report. I will look into making the necessary changes so that any #! line at the top of a file to be encrypted/decrypted is preserved. However, I can't reproduce your problem of the "Can't continue decryption" error if I manually add a #! line to an encrypted script. For example, if I encrypt this: print "Hello, world.\n"; then I get something like this, which runs fine: use Filter::Crypto::Decrypt; 3b7dc0cefea93b18fa3d4739e9a3e05494a9f522aed48ffb70b1f6ae7466fa7c68cc569922965cccf345a33b550279800b4d83e4ac37aceee6332ce9ba76ea5b2759674cfbb93621 and if I add a #! line to the top of that, like this: #!perl use Filter::Crypto::Decrypt; 3b7dc0cefea93b18fa3d4739e9a3e05494a9f522aed48ffb70b1f6ae7466fa7c68cc569922965cccf345a33b550279800b4d83e4ac37aceee6332ce9ba76ea5b2759674cfbb93621 then it still runs fine. Is that what you're doing? If so and it really doesn't work for you for some reason then there will be little point in me making changes to preserve a #! line!