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)



Subject: Bug in Crypt::Pwsafe - possibly in example..see below
Date: Thu, 14 Dec 2006 14:52:16 -0600
To: <bug-Crypt-Pwsafe [...] rt.cpan.org.>
From: "Michael Brian - IL" <MICHAELB [...] tusc.com>
Download pw.psafe3
application/octet-stream 808b

Message body not shown because it is not plain text.

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

Message body is not shown because it is too large.

Fixed in Version 1.1. See Changes file for details.