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)



MIME-Version: 1.0
X-Spam-Status: No, score=-0.917 tagged_above=-99.9 required=10 tests=[BAYES_00=-1.9, HTML_MESSAGE=0.001, RDNS_DYNAMIC=0.982] autolearn=no
X-Mailer: Microsoft Office Outlook 12.0
X-Spam-Flag: NO
Content-Language: en-us
Content-Type: multipart/alternative; boundary="----=_NextPart_000_00A0_01D1B999.7E4C00A0"
Message-ID: <009f01d1b9bb$055c4110$1014c330$ [...] com>
X-Virus-Scanned: Debian amavisd-new at bestpractical.com
X-Spam-Score: -0.917
Received: from localhost (localhost [127.0.0.1]) by hipster.bestpractical.com (Postfix) with ESMTP id 67297240021 for <cpan-bug+Filter-Crypto [...] hipster.bestpractical.com>; Sun, 29 May 2016 11:02:07 -0400 (EDT)
Received: from hipster.bestpractical.com ([127.0.0.1]) by localhost (hipster.bestpractical.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id q66BQnfL7gKL for <cpan-bug+Filter-Crypto [...] hipster.bestpractical.com>; Sun, 29 May 2016 11:02:06 -0400 (EDT)
Received: from la.mx.develooper.com (x1.develooper.com [207.171.7.70]) by hipster.bestpractical.com (Postfix) with SMTP id D33F62400C3 for <bug-Filter-Crypto [...] rt.cpan.org>; Sun, 29 May 2016 11:02:05 -0400 (EDT)
Received: (qmail 12096 invoked by alias); 29 May 2016 15:02:04 -0000
Received: from 28-128-166-207.vitelity.net (HELO confserver3.htj.voipbiz.org) (207.166.128.28) by la.mx.develooper.com (qpsmtpd/0.28) with ESMTP; Sun, 29 May 2016 08:02:01 -0700
Received: from main.voipbiz.org (devel-4 [73.86.136.12]) by confserver3.htj.voipbiz.org (8.14.4/8.14.4) with ESMTP id u4TF1lrZ000741 for <bug-Filter-Crypto [...] rt.cpan.org>; Sun, 29 May 2016 11:01:47 -0400
Received: from MediaPC (MediaPC [192.168.2.33]) by main.voipbiz.org (8.14.7/8.14.7) with ESMTP id u4TF1ke5026121 for <bug-Filter-Crypto [...] rt.cpan.org>; Sun, 29 May 2016 11:01:46 -0400
Delivered-To: cpan-bug+Filter-Crypto [...] hipster.bestpractical.com
Subject: Encrypted file missing the #!/usr/bin/perl line
Return-Path: <frank [...] digennaro.com>
Thread-Index: AdG5uwTq0sfWFfq6RFWsU9VEfI2nYQ==
X-RT-Mail-Extension: filter-crypto
X-Original-To: cpan-bug+Filter-Crypto [...] hipster.bestpractical.com
X-Spam-Check-BY: la.mx.develooper.com
Date: Sun, 29 May 2016 11:01:46 -0400
X-Spam-Level:
To: <bug-Filter-Crypto [...] rt.cpan.org>
From: "Frank DiGennaro" <frank [...] digennaro.com>
X-RT-Interface: Email
Content-Length: 0
content-type: text/plain; charset="utf-8"
Content-Transfer-Encoding: 7bit
X-RT-Original-Encoding: ascii
Content-Length: 379
Download (untitled) / with headers
text/plain 379b
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".
content-type: text/html; charset="utf-8"
Content-Transfer-Encoding: quoted-printable
X-RT-Original-Encoding: ascii
Content-Length: 2065
MIME-Version: 1.0
In-Reply-To: <009f01d1b9bb$055c4110$1014c330$ [...] com>
X-Mailer: MIME-tools 5.504 (Entity 5.504)
Content-Disposition: inline
X-RT-Interface: Web
References: <009f01d1b9bb$055c4110$1014c330$ [...] com>
Content-Type: text/plain; charset="utf-8"
Message-ID: <rt-4.0.18-5294-1472195875-661.114804-0-0 [...] rt.cpan.org>
Content-Transfer-Encoding: binary
X-RT-Original-Encoding: utf-8
X-RT-Encrypt: 0
X-RT-Sign: 0
Content-Length: 1429
Download (untitled) / with headers
text/plain 1.3k
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!


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.