Skip Menu |
 

This queue is for tickets about the Filter CPAN distribution.

Report information
The Basics
Id: 110921
Status: patched
Priority: 0/
Queue: Filter

People
Owner: Nobody in particular
Requestors: Bob_Bachman [...] Intercept.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=-1.899 tagged_above=-99.9 required=10 tests=[BAYES_00=-1.9, HTML_MESSAGE=0.001] autolearn=ham
X-Mailer: Microsoft Outlook 14.0
X-Ironport-Anti-Spam-Result: A2DrBQAK/4tW//0A9jJegm6BHolGhEKxGYYJBIFdEQEBAQEBAQGBCkESg2gIAh4FKTAFBgdbIB8BBB4FiB8FoTeHXY5nikYJkBxchBkFjjCIWAGCcoFll3iOQTgshCgggjyBP4FJAQEB
X-Spam-Flag: NO
X-Virus-Checked: Checked
Content-Language: en-us
Content-Type: multipart/mixed; boundary="----=_NextPart_000_0019_01D147B6.977A9C30"
Message-ID: <001801d147e0$80477c70$80d67550$ [...] Intercept.com>
Reply-To: <Bob_Bachman [...] Intercept.com>
X-Ironport-Anti-Spam-Filtered: true
X-Virus-Scanned: Debian amavisd-new at bestpractical.com
Organization: Intercept Technology Inc
X-Ironport-Av: E=Sophos;i="5.20,525,1444708800"; d="pm'?scan'208,217";a="168464380"
X-Spam-Score: -1.899
Received: from localhost (localhost [127.0.0.1]) by hipster.bestpractical.com (Postfix) with ESMTP id 3A92824032C for <cpan-bug+Filter [...] hipster.bestpractical.com>; Tue, 5 Jan 2016 12:41:21 -0500 (EST)
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 m7Nti1eM5Wmw for <cpan-bug+Filter [...] hipster.bestpractical.com>; Tue, 5 Jan 2016 12:41:19 -0500 (EST)
Received: from la.mx.develooper.com (x1.develooper.com [207.171.7.70]) by hipster.bestpractical.com (Postfix) with SMTP id 6428124008F for <bug-Filter [...] rt.cpan.org>; Tue, 5 Jan 2016 12:41:19 -0500 (EST)
Received: (qmail 32113 invoked by alias); 5 Jan 2016 17:41:18 -0000
Received: from omx.cbeyond.com (HELO omx.cbeyond.com) (50.20.30.9) by la.mx.develooper.com (qpsmtpd/0.28) with ESMTP; Tue, 05 Jan 2016 09:41:15 -0800
Received: from 50-246-0-253-static.hfc.comcastbusiness.net (HELO McGriff) ([50.246.0.253]) by omx.cbeyond.com with ESMTP; 05 Jan 2016 12:41:10 -0500
Delivered-To: cpan-bug+Filter [...] hipster.bestpractical.com
Subject: Perl Decrypt Filter
Return-Path: <Bob_Bachman [...] intercept.com>
X-Hostname: omx09bay.sys.cbeyond.net
Thread-Index: AdFH4EImyCg+H6HzTq63bxW2+oF+FQ==
X-RT-Mail-Extension: filter
X-Original-To: cpan-bug+Filter [...] hipster.bestpractical.com
X-Spam-Check-BY: la.mx.develooper.com
X-SBRS: None
Date: Tue, 5 Jan 2016 12:42:51 -0500
X-Spam-Level:
To: <bug-Filter [...] rt.cpan.org>
X-Ipas-Result: A2DrBQAK/4tW//0A9jJegm6BHolGhEKxGYYJBIFdEQEBAQEBAQGBCkESg2gIAh4FKTAFBgdbIB8BBB4FiB8FoTeHXY5nikYJkBxchBkFjjCIWAGCcoFll3iOQTgshCgggjyBP4FJAQEB
X-Hat: Sender Group GREYLIST_RELAY, Policy $GREYLIST_RELAY applied.
From: "Robert S. Bachman" <Bob_Bachman [...] Intercept.com>
X-RT-Interface: Email
Content-Length: 0
Content-Type: multipart/alternative; boundary="----=_NextPart_001_001A_01D147B6.977A9C30"
Content-Length: 0
content-type: text/plain; charset="utf-8"
Content-Transfer-Encoding: 7bit
X-RT-Original-Encoding: ascii
Content-Length: 438
Download (untitled) / with headers
text/plain 438b
We use the PERL Decrypt filter decrypt.xs that we found on the CPAN website to encrypt and decrypt our perl modules. We recently upgraded to a widgets toolkit (wxWidgets 3.0.2) that uses unicode and now our filter doesn't work. Does anyone know if there is a problem with this filter when using a Unicode toolkit. Thanks for any help you can provide. I've attached the original decrypt filter we got from CPAN. Thanks, Bob Bachman
content-type: text/html; charset="utf-8"
Content-Transfer-Encoding: quoted-printable
X-RT-Original-Encoding: ascii
Content-Length: 2461
Content-Type: application/octet-stream; name="PerlDecryptFilter.pm"
Content-Disposition: attachment; filename="PerlDecryptFilter.pm"
Content-Transfer-Encoding: quoted-printable
Content-Length: 8064

Message body is not shown because sender requested not to inline it.

MIME-Version: 1.0
In-Reply-To: <001801d147e0$80477c70$80d67550$ [...] Intercept.com>
X-Mailer: MIME-tools 5.504 (Entity 5.504)
Content-Disposition: inline
X-RT-Interface: Web
References: <001801d147e0$80477c70$80d67550$ [...] Intercept.com>
Content-Type: text/plain; charset="utf-8"
Message-ID: <rt-4.0.18-16155-1452016170-1230.110921-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: 651
Download (untitled) / with headers
text/plain 651b
On Tue Jan 05 12:41:22 2016, Bob_Bachman@Intercept.com wrote: Show quoted text
> We use the PERL Decrypt filter decrypt.xs that we found on the CPAN website > to encrypt and decrypt our perl modules. > > We recently upgraded to a widgets toolkit (wxWidgets 3.0.2) that uses > unicode and now our filter doesn't work. > > Does anyone know if there is a problem with this filter when using a Unicode > toolkit.
Probably. I'll look into it. use bytes before loading your encrypted module should help. Show quoted text
> I've attached the original decrypt filter we got from CPAN.
There's one added line at the end of decrypt.xs with Status. This seems to be wrong. -- Reini Urban
MIME-Version: 1.0
In-Reply-To: <001801d147e0$80477c70$80d67550$ [...] Intercept.com>
X-Mailer: MIME-tools 5.504 (Entity 5.504)
Content-Disposition: inline
X-RT-Interface: Web
References: <001801d147e0$80477c70$80d67550$ [...] Intercept.com>
Content-Type: text/plain; charset="utf-8"
Message-ID: <rt-4.0.18-15157-1452018022-799.110921-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: 391
Download (untitled) / with headers
text/plain 391b
On Tue Jan 05 12:41:22 2016, Bob_Bachman@Intercept.com wrote: Show quoted text
> I've attached the original decrypt filter we got from CPAN.
There's nothing with the decrypt module per se, but the 2 sample scripts which do the actual encrypt/decryption were wrong. They were missing a binmode. See my fix at https://github.com/rurban/Filter/commit/fd618bdb39a23ec89f06bd3d91b8c010d77d97c8 -- Reini Urban
MIME-Version: 1.0
X-Ironport-Anti-Spam-Result: A2B+AgDQGIxW//0A9jJehAxtiFmzaQ6BZCSFIRA0BAICgVcUAQEBAQEBAYEKhDQBAQEECAIZBS4vAQMCBgMRBAEBAScDAgIZIA0JCAIEEwsFiB8FCbE/hlWKFwEBAQEBAQEBAgEBAQEBAQEBAREJi1WBPIMIX4JQgUkFjjCIWAGCcoFlapcOjkEgAUOCHoIKIDQBBIVcAQEB
X-Spam-Flag: NO
X-Virus-Checked: Checked
X-Virus-Scanned: Debian amavisd-new at bestpractical.com
Content-Type: multipart/mixed; boundary="----=_NextPart_000_0022_01D147C5.BAD7CF90"
X-Spam-Score: -3.899
Received: from localhost (localhost [127.0.0.1]) by hipster.bestpractical.com (Postfix) with ESMTP id 1483D24032C for <cpan-bug+Filter [...] hipster.bestpractical.com>; Tue, 5 Jan 2016 14:29:43 -0500 (EST)
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 ePDYd9Gcy5mC for <cpan-bug+Filter [...] hipster.bestpractical.com>; Tue, 5 Jan 2016 14:29:41 -0500 (EST)
Received: from la.mx.develooper.com (x1.develooper.com [207.171.7.70]) by hipster.bestpractical.com (Postfix) with SMTP id 4679124008F for <bug-Filter [...] rt.cpan.org>; Tue, 5 Jan 2016 14:29:41 -0500 (EST)
Received: (qmail 3756 invoked by alias); 5 Jan 2016 19:29:41 -0000
Received: from omx.cbeyond.com (HELO omx.cbeyond.com) (50.20.30.30) by la.mx.develooper.com (qpsmtpd/0.28) with ESMTP; Tue, 05 Jan 2016 11:29:36 -0800
Received: from 50-246-0-253-static.hfc.comcastbusiness.net (HELO McGriff) ([50.246.0.253]) by omx.cbeyond.com with ESMTP; 05 Jan 2016 14:29:33 -0500
Delivered-To: cpan-bug+Filter [...] hipster.bestpractical.com
Subject: RE: [rt.cpan.org #110921] Perl Decrypt Filter
X-Hostname: omx08bay.sys.cbeyond.net
X-Spam-Check-BY: la.mx.develooper.com
Thread-Index: AQCzlGVpF2Xkbf4NIXmqPIY+RUYuPAF0wzY2AVwo6KqhEicqYA==
X-SBRS: None
Date: Tue, 5 Jan 2016 14:31:13 -0500
X-Spam-Level:
X-Ipas-Result: A2B+AgDQGIxW//0A9jJehAxtiFmzaQ6BZCSFIRA0BAICgVcUAQEBAQEBAYEKhDQBAQEECAIZBS4vAQMCBgMRBAEBAScDAgIZIA0JCAIEEwsFiB8FCbE/hlWKFwEBAQEBAQEBAgEBAQEBAQEBAREJi1WBPIMIX4JQgUkFjjCIWAGCcoFlapcOjkEgAUOCHoIKIDQBBIVcAQEB
To: <bug-Filter [...] rt.cpan.org>
In-Reply-To: <rt-4.0.18-15157-1452018022-1258.110921-6-0 [...] rt.cpan.org>
X-Spam-Status: No, score=-3.899 tagged_above=-99.9 required=10 tests=[AWL=2.001, BAYES_00=-1.9, FROM_OUR_RT=-4] autolearn=ham
X-Mailer: Microsoft Outlook 14.0
X-RT-Interface: API
Content-Language: en-us
References: <RT-Ticket-110921 [...] rt.cpan.org> <001801d147e0$80477c70$80d67550$ [...] Intercept.com> <rt-4.0.18-15157-1452018022-1258.110921-6-0 [...] rt.cpan.org>
Message-ID: <002101d147ef$a3add790$eb0986b0$ [...] Intercept.com>
Reply-To: <Bob_Bachman [...] Intercept.com>
X-Ironport-Anti-Spam-Filtered: true
Organization: Intercept Technology Inc
X-Ironport-Av: E=Sophos;i="5.20,525,1444708800"; d="xs'?pm'?scan'208";a="142581665"
Return-Path: <Bob_Bachman [...] intercept.com>
X-RT-Mail-Extension: filter
X-Original-To: cpan-bug+Filter [...] hipster.bestpractical.com
X-Hat: Sender Group GREYLIST_RELAY, Policy $GREYLIST_RELAY applied.
From: "Robert S. Bachman" <Bob_Bachman [...] Intercept.com>
RT-Message-ID: <rt-4.0.18-9489-1452022183-1892.110921-0-0 [...] rt.cpan.org>
Content-Length: 0
content-type: text/plain; charset="utf-8"
Content-Transfer-Encoding: quoted-printable
X-RT-Original-Encoding: utf-8
Content-Length: 772
Download (untitled) / with headers
text/plain 772b
Thanks, We were already using binmode so I know that's not it. I've attached the actual files we're using. Bob Show quoted text
-----Original Message----- From: Reini Urban via RT [mailto:bug-Filter@rt.cpan.org] Sent: Tuesday, January 05, 2016 1:20 PM To: Bob_Bachman@Intercept.com Subject: [rt.cpan.org #110921] Perl Decrypt Filter <URL: https://rt.cpan.org/Ticket/Display.html?id=110921 > On Tue Jan 05 12:41:22 2016, Bob_Bachman@Intercept.com wrote:
> I've attached the original decrypt filter we got from CPAN.
There's nothing with the decrypt module per se, but the 2 sample scripts which do the actual encrypt/decryption were wrong. They were missing a binmode. See my fix at https://github.com/rurban/Filter/commit/fd618bdb39a23ec89f06bd3d91b8c010d77d97c8 -- Reini Urban
Content-Type: application/octet-stream; name="iti_ce_perl_load.xs"
Content-Disposition: attachment; filename="iti_ce_perl_load.xs"
Content-Transfer-Encoding: quoted-printable
Content-Length: 8131
Download iti_ce_perl_load.xs
text/x-csrc 7.9k

Message body is not shown because sender requested not to inline it.

Content-Type: application/octet-stream; name="perl_encrypt.pm"
Content-Disposition: attachment; filename="perl_encrypt.pm"
Content-Transfer-Encoding: quoted-printable
Content-Length: 10959
Download perl_encrypt.pm
text/x-perl 10.7k

Message body is not shown because sender requested not to inline it.

X-MS-Exchange-Crosstenant-Fromentityheader: Hosted
Spamdiagnosticmetadata: NSPM
MIME-Version: 1.0
Spamdiagnosticoutput: 1:23
X-Spam-Flag: NO
X-Clientproxiedby: SN1PR18CA0018.namprd18.prod.outlook.com (25.163.219.156) To BY2PR15MB0518.namprd15.prod.outlook.com (25.163.110.155)
X-Virus-Scanned: Debian amavisd-new at bestpractical.com
content-type: text/plain; charset="utf-8"
X-RT-Original-Encoding: utf-8
X-Spam-Score: -4.9
X-Exchange-Antispam-Report-Test: UriScan:;
Authentication-Results: hipster.bestpractical.com (amavisd-new); dkim=pass header.i= [...] intercepttechnologyinc.onmicrosoft.com
Authentication-Results: rt.cpan.org; dkim=none (message not signed) header.d=none;rt.cpan.org; dmarc=none action=none header.from=Intercept.com;
Received: from localhost (localhost [127.0.0.1]) by hipster.bestpractical.com (Postfix) with ESMTP id 00CE3240309 for <cpan-bug+Filter [...] hipster.bestpractical.com>; Wed, 24 Feb 2016 10:08:25 -0500 (EST)
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 K31o91PNmXMy for <cpan-bug+Filter [...] hipster.bestpractical.com>; Wed, 24 Feb 2016 10:08:21 -0500 (EST)
Received: from la.mx.develooper.com (x1.develooper.com [207.171.7.70]) by hipster.bestpractical.com (Postfix) with SMTP id EF17C240226 for <bug-Filter [...] rt.cpan.org>; Wed, 24 Feb 2016 10:08:20 -0500 (EST)
Received: (qmail 13581 invoked by alias); 24 Feb 2016 15:08:20 -0000
Received: from mail-by2on0120.outbound.protection.outlook.com (HELO na01-by2-obe.outbound.protection.outlook.com) (207.46.100.120) by la.mx.develooper.com (qpsmtpd/0.28) with ESMTP; Wed, 24 Feb 2016 07:08:12 -0800
Received: from McGriff (50.246.0.253) by BY2PR15MB0518.namprd15.prod.outlook.com (10.163.110.155) with Microsoft SMTP Server (TLS) id 15.1.409.15; Wed, 24 Feb 2016 15:08:06 +0000
Delivered-To: cpan-bug+Filter [...] hipster.bestpractical.com
Subject: RE: [rt.cpan.org #110921] Perl Decrypt Filter
Dkim-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=InterceptTechnologyInc.onmicrosoft.com; s=selector1-intercept-com; h=From:To:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=10dEoPGT4oDmqGk9mCaZ0McPBYvDqMDfCQdAWT0XSeo=; b=JjZnBuvp5n1C3hr3kmYDUDm29VnsbFJ8dyJZkFv5nUe3BouGrP/sDwFZ0PSrFHyXIpgzjB/PFJmGWG7EXdzyeMqnmV9ar/qISln+mmefSRgkJInUAMrtWbM1/xxvTY2aGMc44wm8D9rMh2J4+MesQNHiLwuFvxzZ61FBpVkaQMs=
X-Spam-Check-BY: la.mx.develooper.com
Thread-Index: AQCzlGVpF2Xkbf4NIXmqPIY+RUYuPAF0wzY2AVwo6KqhYHgEcA==
Date: Wed, 24 Feb 2016 10:09:57 -0500
X-Originatororg: intercept.com
X-Spam-Level:
X-MS-Office365-Filtering-Correlation-ID: 41f4a48d-98d0-486c-0669-08d33d2c4cef
To: <bug-Filter [...] rt.cpan.org>
Content-Transfer-Encoding: quoted-printable
X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:BY2PR15MB0518;
X-Exchange-Antispam-Report-Cfa-Test: BCL:0;PCL:0;RULEID:(601004)(2401047)(5005006)(8121501046)(3002001)(10201501046);SRVR:BY2PR15MB0518;BCL:0;PCL:0;RULEID:;SRVR:BY2PR15MB0518;
X-Forefront-Antispam-Report: SFV:NSPM;SFS:(10019020)(4630300001)(6009001)(13464003)(377454003)(24454002)(164054003)(102836003)(3846002)(2351001)(1420700001)(6116002)(66066001)(1096002)(586003)(46816001)(5004730100002)(5008740100001)(43066003)(11990500001)(80792005)(2950100001)(5890100001)(15975445007)(2906002)(3450700001)(19580395003)(107886002)(77096005)(50466002)(110136002)(5001960100002)(19580405001)(53806999)(50226001)(106116001)(36756003)(87976001)(40100003)(75216001)(84116002)(450100001)(122386002)(42186005)(47776003)(86362001)(23676002)(50986999)(33646002)(76176999)(189998001)(61296003);DIR:OUT;SFP:1102;SCL:1;SRVR:BY2PR15MB0518;H:McGriff;FPR:;SPF:None;MLV:sfv;LANG:en;
In-Reply-To: <rt-4.0.18-15157-1452018022-1258.110921-6-0 [...] rt.cpan.org>
X-Spam-Status: No, score=-4.9 tagged_above=-99.9 required=10 tests=[AWL=1.001, BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, FROM_OUR_RT=-4, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_PASS=-0.001] autolearn=ham
X-Mailer: Microsoft Outlook 14.0
X-Microsoft-Exchange-Diagnostics: 1;BY2PR15MB0518;2:TZR3RO35skh3jElSIvHzW/x/kf9zV5lAr6YMBs0HUASPt1w16zAmKjJZ8GXKmM73dzt4BK4VVxlYwzOAbVCK/s/0IfMQb/K6A32b+RN2aGt6XqKPebpH/H6gS+n2e0Fls/ki9ouxMPLI8+zQyHLq+g==;3:mPaEsNkOBodIhMBHrBu2S33HS5nDRpT24lNUj4iMV/N3LAXCJvk19cYi+ggcNspQqMQzFoRMRsg0B8moQHl+u+rpk118EyZin6u4aXqmlWdD4FobCZRJeNvEZb/mzND+;25:EK4meeV7+DBbB25XdbwKV3rhNGSQ+Jeg4iLJ/L+LgtFr9KJGX3Qt1uMyqw4Pb38djx2GyClYXg8QDCqTY5T9iWe0hp4jl3Mo0NkkZAVqXOnJB60ZtFu2DUSA+dCi86/noeE1o1znzIEXb/u4A0hbaSRNftYDj+EGJoWYJaRrg94HzbCE2/CxRXT9P7e5tMlvGeo3t2gODf3ixx+9Z8gi02JJwSPtieVEvx5iwW7UCau0kkeGiLE1jAL4kUjDL6BpCZUrXIPAeVlVqYo6L9+xfY7drCJb2DYuG52ijVe+FOzTIkYrAYspGQR6pjb9lZJV
X-Microsoft-Exchange-Diagnostics: 1;BY2PR15MB0518;4:cx8GBM0/na1tzoV+MDmRCTM/opXQhZWqHkjUcrrPcRj2Mqn9KfVOvoLCaX9kN0NGb23k8IobX6AIWtb4YIX94Myyqv+bgFgGBN1Mg7ZVxv7xYPFMnCHvvdqroXBkxxbsaK7ow/IR2s066yahMIfYs/EtJcJT2RY4MHaKnTEp1XNuqUASquN+U2ZNsOB1Tq+TwBhpGSDkpBEOZjYVMm2ulVa+krVoY+16XbzuGQBJtORnWlCQjbf+qkyAJ6iavw5aWI4BLyfwf5FhOxe+fsctLMwxglkO7blLwtKuPsMmrLyxsOoibExwGAeJANTrNKRV105rZPjg8FLbkzldslPrlYK4/zV5JAeWm5d3ZQTb2mz83WuONx+6daY2asqaK/jW
X-Microsoft-Exchange-Diagnostics: 1;BY2PR15MB0518;23:KrqwjmB4uEZjKDO1EqKDuBQxv8wrvwV2LNhC2X1Pj4/b6sAuFBx+meRrZrYajKRSfPftpxidrQhE8O9A7Ge/R3vK4iiO5Pz6mbfSXDsUp1urLseLXI8RiX64pM1+NWVoG38mTppq63LeUEplEFtW2d+5We9Rcj/A0ztemgrWNUxXRTgjrKfC0skQDvXFWl3noQrChZLdRWb65l7s4qR8EMKW+45BnRjehA9+21r9qyZp8NCQtIYimnWOUgX2ODXBdrxhdBrhhzR6U47ALpYywe4d7rYiwQLPB08rJqe2j1rmd01H/r4gear/zVglKd+aFsHmW5I5z69kHPqv68OUb8ReAEMj5w4H/Yk1SVnyouc6msRZ18DhJLVDCr6qEZjakumR9kbvgFT6yjXj2FpeLaaPbGmLLD5xSbUeBXH27rOpWfCPmmzUPtQxZv3M9AbzxLVfXxTddftQord8ViM74sw7AXO6VaPDMNNeVVuyJFm76X54kA1xHG7x8M43WoBXspUEL2TpbtsM0QsaJp3XJTplqEqBNVBgWoKzk50jUFvyxVpPmZ7273fPsdHyXmcyKLjGzGETmeIxfHOZpmw8rE7cOdcWB0RFDaWLxpnX1LdWIp2MxnidWsvB5//M9TWhXZWglCwlDL5Ge5osK6OZ99vxdbZ7PZuOnfSj+4JAAZrpbtuTkHAABztqyFAFvyJScFVzvJUB630cuYTnIBV7cHQ1x1k8g6nRRR51BLLdUi4GNhoKItJt2ekeWzKmFcbCJdcVZB3oVtELQy9CPoqgoWAsjf3WybHpV8UbV8vPUfptwtkaFuN0gUYeoYMArp2PUB6WBvFBQqObYrnr7ZCAvz/y812iKWEag7cWs3m9kmjoTnm2otYEO6jcEtzPO2ZtteAZdHZfUCg+CTG1neG5DjUNL1hmpI6l/+5rQfegRVEwyvTlpQWZ7s/d6CKJohPhR/+2aOrJejem9mt101IqLDP814+V3J3XSyqt5oGJUoJMfzzkFxXjwmtEpEYq90wQAgMmBKHRL/pYM/nSk1YMdvHLFucZcv1bJhfb0SIycVLeIoadbQP+HM881H4Ni+obwRz8jUCQFlrGEqBXzfioO0rRYvqiRnW0pjF8ey5HpKyRhQITVB4Ky2uogSQogKTeMAkzrDpBOXEIO0LO839OI8LAeZTHn4XlLGbe4d6Kd/W52UbBuT6922GTb7e87Zmazard7AAsWurOAwF/otWoxxj/I1Dkf4HDd0HOmZToQ/Q7j+mTahvyRwVk55IsB8RPYMvWjWYU6BuEFz69BmTowkXY0mUaXVJGmEN74zRu5X9/HP8+57t1ElKxdNJ0E1Jq
X-Microsoft-Exchange-Diagnostics: 1;BY2PR15MB0518;5:AmxtYRTGbXoxSP2lVUvqjtku7JsMgDC+l5IPN8RHsoO4fmcomwLjzf8IHh4iNbPAVRMoUwN+uKigy+VUyWVDHr/Qo4xr9VKbeqDnmB7Muo9JrMAqMj0Dt3VDxXXmu7dNV65K0l+8of29qYFb36TQNQ==;24:28VeOZgk417qTaWXGkLxVpXdJlfBKlQ+6mSvnyhH6gxIwfT5A6eUf6l3weFftpBTVWO5krQb9EjgYahwX+GIME3rsxyyjVYEt+Gv83wNX0Q=
X-RT-Interface: API
Content-Language: en-us
References: <RT-Ticket-110921 [...] rt.cpan.org> <001801d147e0$80477c70$80d67550$ [...] Intercept.com> <rt-4.0.18-15157-1452018022-1258.110921-6-0 [...] rt.cpan.org>
Message-ID: <000001d16f15$6efc7450$4cf55cf0$ [...] Intercept.com>
Reply-To: <Bob_Bachman [...] Intercept.com>
Organization: Intercept Technology Inc
X-Microsoft-Antispam-PRVS: <BY2PR15MB05181DCB2199BD87570F0B9C89A50 [...] BY2PR15MB0518.namprd15.prod.outlook.com>
Return-Path: <Bob_Bachman [...] intercept.com>
X-RT-Mail-Extension: filter
X-Original-To: cpan-bug+Filter [...] hipster.bestpractical.com
X-MS-Exchange-Crosstenant-Originalarrivaltime: 24 Feb 2016 15:08:06.2960 (UTC)
X-Forefront-PRVS: 08626BE3A5
X-Originating-Ip: [50.246.0.253]
From: "Robert S. Bachman" <Bob_Bachman [...] Intercept.com>
X-MS-Exchange-Transport-Crosstenantheadersstamped: BY2PR15MB0518
RT-Message-ID: <rt-4.0.18-3267-1456326505-1388.110921-0-0 [...] rt.cpan.org>
Content-Length: 1196
Download (untitled) / with headers
text/plain 1.1k
Hi, We're still having problems with the PERL decrypt Filter, version 1.55 using a unicode Toolkit. We are setting the input and output streams to binmode. Some XOR lines work and some don't. Here's an example: static unsigned XOR [BLOCKSIZE] = {'#', '%', '5', 'f', '5', '5', '5', '5', '5', '5', '5', 'i', 'j', 'o' } ; /* OK */ /* static unsigned XOR [BLOCKSIZE] = {'#', '%', 'd', 'f', '5', '5', '5', '5', '5', '5', '5', 'i', 'j', 'o' } ; */ /* BAD */ Do you have idea why this wouldn't work? Thanks, Bob Bachman Show quoted text
-----Original Message----- From: Reini Urban via RT [mailto:bug-Filter@rt.cpan.org] Sent: Tuesday, January 05, 2016 1:20 PM To: Bob_Bachman@Intercept.com Subject: [rt.cpan.org #110921] Perl Decrypt Filter <URL: https://rt.cpan.org/Ticket/Display.html?id=110921 > On Tue Jan 05 12:41:22 2016, Bob_Bachman@Intercept.com wrote:
> I've attached the original decrypt filter we got from CPAN.
There's nothing with the decrypt module per se, but the 2 sample scripts which do the actual encrypt/decryption were wrong. They were missing a binmode. See my fix at https://github.com/rurban/Filter/commit/fd618bdb39a23ec89f06bd3d91b8c010d77d97c8 -- Reini Urban
MIME-Version: 1.0 (Mac OS X Mail 9.2 \(3112\))
X-Spam-Status: No, score=-6.699 tagged_above=-99.9 required=10 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_FROM=0.001, FROM_OUR_RT=-4, RCVD_IN_DNSWL_LOW=-0.7] autolearn=ham
In-Reply-To: <rt-4.0.18-3267-1456326505-745.110921-5-0 [...] rt.cpan.org>
X-Mailer: Apple Mail (2.3112)
X-Spam-Flag: NO
X-RT-Interface: API
References: <RT-Ticket-110921 [...] rt.cpan.org> <001801d147e0$80477c70$80d67550$ [...] Intercept.com> <rt-4.0.18-15157-1452018022-1258.110921-6-0 [...] rt.cpan.org> <000001d16f15$6efc7450$4cf55cf0$ [...] Intercept.com> <rt-4.0.18-3267-1456326505-745.110921-5-0 [...] rt.cpan.org>
X-Virus-Scanned: Debian amavisd-new at bestpractical.com
X-Received: by 10.194.220.230 with SMTP id pz6mr40187054wjc.39.1456333290911; Wed, 24 Feb 2016 09:01:30 -0800 (PST)
content-type: text/plain; charset="utf-8"
Message-ID: <19C3014D-9C56-400E-B8AC-06798044A1DC [...] gmail.com>
X-RT-Original-Encoding: utf-8
X-Spam-Score: -6.699
Authentication-Results: hipster.bestpractical.com (amavisd-new); dkim=pass header.i= [...] gmail.com
Received: from localhost (localhost [127.0.0.1]) by hipster.bestpractical.com (Postfix) with ESMTP id BE5FA240309 for <cpan-bug+Filter [...] hipster.bestpractical.com>; Wed, 24 Feb 2016 12:01:41 -0500 (EST)
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 ubK5L+xdWRi2 for <cpan-bug+Filter [...] hipster.bestpractical.com>; Wed, 24 Feb 2016 12:01:39 -0500 (EST)
Received: from la.mx.develooper.com (x1.develooper.com [207.171.7.70]) by hipster.bestpractical.com (Postfix) with SMTP id 24086240226 for <bug-Filter [...] rt.cpan.org>; Wed, 24 Feb 2016 12:01:39 -0500 (EST)
Received: (qmail 21092 invoked by alias); 24 Feb 2016 17:01:38 -0000
Received: from mail-wm0-f41.google.com (HELO mail-wm0-f41.google.com) (74.125.82.41) by la.mx.develooper.com (qpsmtpd/0.28) with ESMTP; Wed, 24 Feb 2016 09:01:35 -0800
Received: by mail-wm0-f41.google.com with SMTP id a4so39086721wme.1 for <bug-Filter [...] rt.cpan.org>; Wed, 24 Feb 2016 09:01:34 -0800 (PST)
Received: from [192.168.2.144] (dslb-178-011-212-197.178.011.pools.vodafone-ip.de. [178.11.212.197]) by smtp.gmail.com with ESMTPSA id 73sm32144819wmy.22.2016.02.24.09.01.28 for <bug-Filter [...] rt.cpan.org> (version=TLS1 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 24 Feb 2016 09:01:28 -0800 (PST)
Delivered-To: cpan-bug+Filter [...] hipster.bestpractical.com
Subject: Re: [rt.cpan.org #110921] Perl Decrypt Filter
Return-Path: <reini.urban [...] gmail.com>
Dkim-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=content-type:mime-version:subject:from:in-reply-to:date :content-transfer-encoding:message-id:references:to; bh=vfKKhXZOR94eDckx1G8ro3JiQP5nZ+7TxHsTZLj3Qrk=; b=V9J/yoq9RzkrkuD6OiVA5WxekPvl70Q/d+sMA7gy4PJ9YZl6WM5zo1C8FIq4PxLdVx zb03dDiQhhi2H2NshwU8l0I3m6QpucKICG1GcgZkDv7kV9ONKZJF/f+JYHy674YMLu8C ho7cZnbUThVS/zbWPJ9Sg5dGvh5+uRu8VE6n9GCFkc9soa5C8zNRm+oTgb8TChV5ElFF 66BWHIuI/sucq05X8Nf0iTs2U9M1wIdd+bKTmc1MGMHAoJxMGiv2Mnp5CegBSTLCIJfw d73B192kfAyWs13LikKwJlKgTaWC84ZFxcT0Ga6RwGnOgxY0utqPRwgNXaW5rrwq+tqG 6u0Q==
X-Spam-Check-BY: la.mx.develooper.com
X-Original-To: cpan-bug+Filter [...] hipster.bestpractical.com
X-RT-Mail-Extension: filter
X-Google-Dkim-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:content-type:mime-version:subject:from :in-reply-to:date:content-transfer-encoding:message-id:references:to; bh=vfKKhXZOR94eDckx1G8ro3JiQP5nZ+7TxHsTZLj3Qrk=; b=KISsbsluC85LSGUdhQrDrIxVqt/OIPEaNRn/Ato7qckmP9sBXCsYMnsyftCMzK+Czv 3md+AkWKkymOuN0Q3nkNCuiXpD3ZEFVzkKe3W1WOI4eKFa0CJXNEExs4SVVQVYAH+Io8 5Tn3WqcbV+m98YrnJUCpFfbS0DGOwa2L5GbuHXBbhpX34lf+OM56dYUPy97EWp9wJsYC GhG7F7Tt2zXf5/lgv1D2S6XqGG0Hi9w8YAOknpsz9+OGAta3pZ4Ic/i8micruzWDhFq4 UBCKqZDlPiT41MUyWrkGbWdrI0iIFicKloCKXg5IPW6l7D5fLwiGjuNY6rZeiJ4wp8zb 7xkg==
Date: Wed, 24 Feb 2016 18:01:27 +0100
X-Spam-Level:
To: bug-Filter [...] rt.cpan.org
Content-Transfer-Encoding: quoted-printable
X-GM-Message-State: AG10YOQ954nenXh9sgpVG1opfN91ZIDMGwqJCm9coMvTuSkBpJRvAUd18uAmF6MdbiPswQ==
From: Reini Urban <reini.urban [...] gmail.com>
RT-Message-ID: <rt-4.0.18-32680-1456333302-1681.110921-0-0 [...] rt.cpan.org>
Content-Length: 873
Download (untitled) / with headers
text/plain 873b
Show quoted text
> On Feb 24, 2016, at 4:08 PM, Bob_Bachman@Intercept.com via RT <bug-Filter@rt.cpan.org> wrote: > > Queue: Filter > Ticket <URL: https://rt.cpan.org/Ticket/Display.html?id=110921 > > > Hi, We're still having problems with the PERL decrypt Filter, version 1.55 using a unicode > Toolkit. We are setting the input and output streams to binmode. > > Some XOR lines work and some don't. Here's an example: > > static unsigned XOR [BLOCKSIZE] = {'#', '%', '5', 'f', '5', '5', '5', '5', '5', '5', '5', 'i', 'j', 'o' } ; /* OK */ > /* static unsigned XOR [BLOCKSIZE] = {'#', '%', 'd', 'f', '5', '5', '5', '5', '5', '5', '5', 'i', 'j', 'o' } ; */ /* BAD */ > > Do you have idea why this wouldn't work?
Good case. This looks like it’s being passed through printf, even if I cannot find any printf/sprintf in the Filter code per se. Very interesting!
MIME-Version: 1.0
In-Reply-To: <rt-4.0.18-3267-1456326505-1388.110921-0-0 [...] rt.cpan.org>
X-Mailer: MIME-tools 5.504 (Entity 5.504)
Content-Disposition: inline
X-RT-Interface: Web
References: <RT-Ticket-110921 [...] rt.cpan.org> <001801d147e0$80477c70$80d67550$ [...] Intercept.com> <rt-4.0.18-15157-1452018022-1258.110921-6-0 [...] rt.cpan.org> <000001d16f15$6efc7450$4cf55cf0$ [...] Intercept.com> <rt-4.0.18-3267-1456326505-1388.110921-0-0 [...] rt.cpan.org>
Content-Type: text/plain; charset="utf-8"
Message-ID: <rt-4.0.18-18128-1484945418-940.110921-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: 863
Download (untitled) / with headers
text/plain 863b
On Wed Feb 24 10:08:25 2016, Bob_Bachman@Intercept.com wrote: Show quoted text
> Hi, We're still having problems with the PERL decrypt Filter, version > 1.55 using a unicode > Toolkit. We are setting the input and output streams to binmode. > > Some XOR lines work and some don't. Here's an example: > > static unsigned XOR [BLOCKSIZE] = {'#', '%', '5', 'f', '5', '5', '5', > '5', '5', '5', '5', 'i', 'j', 'o' } ; /* OK */ > /* static unsigned XOR [BLOCKSIZE] = {'#', '%', 'd', 'f', '5', '5', > '5', '5', '5', '5', '5', 'i', 'j', 'o' } ; */ /* BAD */ > > Do you have idea why this wouldn't work?
So I've uploaded now 1.56. Give it a try. Regarding the %d getting expanded by the filter: I've looked through the Filter XS code and the core FILTER code in toke.c Nothing seems to go through sprintf or printf. So it could be your external decrypter, which does this.


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.