Skip Menu |
 

This queue is for tickets about the Crypt-Pwsafe CPAN distribution.

Report information
The Basics
Id: 23943
Status: resolved
Worked: 1 hour (60 min)
Priority: 0/
Queue: Crypt-Pwsafe

People
Owner: shufengtan [...] gmail.com
Requestors: MICHAELB [...] tusc.com
Cc:
AdminCc:

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



MIME-Version: 1.0
X-Spam-Status: No, hits=-2.5 required=8.0 tests=BAYES_00,HTML_90_100,HTML_MESSAGE
Content-Class: urn:content-classes:message
Received-SPF: pass (x1.develooper.com: local policy)
X-Virus-Checked: Checked
Content-Type: multipart/mixed; boundary="----_=_NextPart_001_01C71FC1.BD482B49"
X-MS-Tnef-Correlator:
Received: from la.mx.develooper.com (x1.develooper.com [63.251.223.170]) by diesel.bestpractical.com (Postfix) with SMTP id E0F6B4D8071 for <bug-Crypt-Pwsafe [...] rt.cpan.org>; Thu, 14 Dec 2006 15:52:42 -0500 (EST)
Received: (qmail 12955 invoked by alias); 14 Dec 2006 20:52:41 -0000
Received: from exchange.tusc.com (HELO exchange.tusc.com) (65.174.243.31) by la.mx.develooper.com (qpsmtpd/0.28) with ESMTP; Thu, 14 Dec 2006 12:52:26 -0800
Delivered-To: cpan-bug+crypt-pwsafe [...] diesel.bestpractical.com
Subject: Bug in Crypt::Pwsafe - possibly in example..see below
Return-Path: <MICHAELB [...] tusc.com>
Thread-Index: Accfwbt0NJMW98iwQMCtxvXVPHph5Q==
X-Original-To: bug-Crypt-Pwsafe [...] rt.cpan.org
X-Spam-Check-BY: la.mx.develooper.com
Date: Thu, 14 Dec 2006 14:52:16 -0600
X-MS-Has-Attach: yes
Thread-Topic: Bug in Crypt::Pwsafe - possibly in example..see below
Message-Id: <BB9C776D8D81DE4A9F217235582F6CF20DC7D0 [...] TUSCMAIL.tusc.ad>
X-Mimeole: Produced By Microsoft Exchange V6.5
To: <bug-Crypt-Pwsafe [...] rt.cpan.org.>
From: "Michael Brian - IL" <MICHAELB [...] tusc.com>
Content-Length: 0
Content-Description: pw.psafe3
content-type: application/octet-stream; name="pw.psafe3"
content-disposition: attachment; filename="pw.psafe3"
Content-Transfer-Encoding: base64
Content-Length: 808
Download pw.psafe3
application/octet-stream 808b

Message body not shown because it is not plain text.

Content-Type: multipart/alternative; boundary="----_=_NextPart_002_01C71FC1.BD482B49"
Content-Length: 0
content-type: text/plain; charset="utf-8"
Content-Transfer-Encoding: quoted-printable
X-RT-Original-Encoding: us-ascii
Content-Length: 6995
Download (untitled) / with headers
text/plain 6.8k
To whom it may concern, I downloaded through CPAN, the latest Crypt::Pwsafe. I built a password file using "Password Gorilla" and have attached it above. The password for the file is "test" The output of your example, isn't working and repeats the data. EXAMPLE CODE FROM DISTRIBUTION =============================== use Strict; use Crypt::Pwsafe; my $file = shift; die "File not found.\n" unless $file && -f $file; my $comb = Crypt::Pwsafe::enter_combination(); my $pwsafe = new Crypt::Pwsafe $file, $comb; foreach my $group (keys %$pwsafe) { print "grp $group\n"; my $gh = $pwsafe->{$group}; foreach my $entry (keys %$gh) { print "ent $entry\n"; my $eh = $gh->{$entry}; foreach my $xx (keys %$eh) { print "field $xx=$eh->{$xx}\n"; #print "$field\n"; } } } OUTPUT FROM EXAMPLE: ====================== C:\pwsafeswt\Crypt-Pwsafe-1.002>perl pwlist.pl pw.psafe3 Enter password safe combination: grp DATABASE ent myuser3@mydatabase field Password=mypass3 field Notes=This is pw for mydatabase:myuser3:mypass3 field CTime=1166128928 field RecordMTime=1166128961 field PWMTime=1166128961 field UUID=00000000000000000000000000000000 grp HOST ent myuser@myhost field Password=mypass3 field Notes=This is pw for mydatabase:myuser3:mypass3 field CTime=1166128928 field RecordMTime=1166128961 field PWMTime=1166128961 field UUID=00000000000000000000000000000000 ent myuser1@myhost1 field Password=mypass3 field Notes=This is pw for mydatabase:myuser3:mypass3 field CTime=1166128928 field RecordMTime=1166128961 field PWMTime=1166128961 field UUID=00000000000000000000000000000000 grp B 24 1 ent dummy field Password=mypass3 field Notes=This is pw for mydatabase:myuser3:mypass3 field CTime=1166128928 field RecordMTime=1166128961 field PWMTime=1166128961 field UUID=00000000000000000000000000000000 XML EXPORT OF PASSWORD FILE USING PASSWORDSAFE ================================================= <?xml version="1.0" encoding="ISO-8859-1"?> <?xml-stylesheet type="text/xsl" href="pwsafe.xsl"?> <passwordsafe delimiter="^" Database="c:\pwsafeswt\Crypt-Pwsafe-1.002\pw.psafe3" ExportTimeStamp="2006-12-14T14:50:16" FromDatabaseFormat="3.00" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="pwsafe.xsd"> <entry id="1"> <group><![CDATA[DATABASE]]></group> <title><![CDATA[mydatabase]]></title> <username><![CDATA[myuser3]]></username> <password><![CDATA[mypass3]]></password> <notes><![CDATA[This is pw for mydatabase:myuser3:mypass3]]></notes> <uuid><![CDATA[00ee1200fcee1200e3f3d57700587700]]></uuid> <ctime> <date>2006-12-14</date> <time>14:42:08</time> </ctime> <atime> <date>1970-01-01</date> <time>00:00:00</time> </atime> <ltime> <date>1970-01-01</date> <time>00:00:00</time> </ltime> <pmtime> <date>2006-12-14</date> <time>14:42:41</time> </pmtime> <rmtime> <date>2006-12-14</date> <time>14:42:41</time> </rmtime> </entry> <entry id="2"> <group><![CDATA[HOST]]></group> <title><![CDATA[myhost]]></title> <username><![CDATA[myuser]]></username> <password><![CDATA[mypass]]></password> <notes><![CDATA[This is pw for host:myhost and myuser]]></notes> <uuid><![CDATA[00ee1200fcee1200e3f3d57700587700]]></uuid> <ctime> <date>2006-12-14</date> <time>14:40:05</time> </ctime> <atime> <date>1970-01-01</date> <time>00:00:00</time> </atime> <ltime> <date>1970-01-01</date> <time>00:00:00</time> </ltime> <pmtime> <date>2006-12-14</date> <time>14:41:06</time> </pmtime> <rmtime> <date>2006-12-14</date> <time>14:41:06</time> </rmtime> </entry> <entry id="3"> <group><![CDATA[HOST]]></group> <title><![CDATA[myhost1]]></title> <username><![CDATA[myuser1]]></username> <password><![CDATA[mypass1]]></password> <notes><![CDATA[This is pw for myhost1, myuser1, mypass1]]></notes> <uuid><![CDATA[00ee1200fcee1200e3f3d57700587700]]></uuid> <ctime> <date>2006-12-14</date> <time>14:41:08</time> </ctime> <atime> <date>1970-01-01</date> <time>00:00:00</time> </atime> <ltime> <date>1970-01-01</date> <time>00:00:00</time> </ltime> <pmtime> <date>2006-12-14</date> <time>14:41:52</time> </pmtime> <rmtime> <date>2006-12-14</date> <time>14:41:52</time> </rmtime> </entry> </passwordsafe> Sincerely, Brian P Michael bmichael@tusc.com
Content-Type: text/html; charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
X-RT-Original-Encoding: us-ascii
Content-Length: 44441
Download (untitled) / with headers
text/html 43.3k

Message body is not shown because it is too large.

MIME-Version: 1.0
In-Reply-To: <BB9C776D8D81DE4A9F217235582F6CF20DC7D0 [...] TUSCMAIL.tusc.ad>
X-Mailer: MIME-tools 5.418 (Entity 5.418)
Content-Disposition: inline
Message-Id: <rt-3.6.HEAD-23202-1166204250-591.23943-0-0 [...] rt.cpan.org>
References: <BB9C776D8D81DE4A9F217235582F6CF20DC7D0 [...] TUSCMAIL.tusc.ad>
Content-Type: text/plain; charset="utf8"
Content-Transfer-Encoding: binary
X-RT-Original-Encoding: utf-8
X-RT-Original-Encoding: utf-8
Content-Length: 52
Fixed in Version 1.1. See Changes file for details.


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.