[BACK]Return to test2.pl CVS log [TXT][DIR] Up to [local] / palm / Palm-Keyring

Diff for /palm/Palm-Keyring/test2.pl between version 1.2 and 1.3

version 1.2, 2006/12/06 20:59:23 version 1.3, 2007/01/30 04:59:55
Line 4 
Line 4 
 use diagnostics;  use diagnostics;
   
 use lib 'lib';  use lib 'lib';
   use Palm::PDB;
 use Palm::Keyring;  use Palm::Keyring;
   use YAML;
   
 my $pdb = new Palm::Keyring;  my $pdb = new Palm::PDB;
   
 use YAML;  $pdb->Load("Keys-Gtkr.pdb") || die "Unable to load PDB";
   
   #print Dump $pdb->{'records'};
   
 print "Enter: ";  print "Enter: ";
 my $Pass = <>;  my $Pass = <>;
 chomp $Pass;  chomp $Pass;
 print "\n";  print "\n";
   
 $pdb->Load("Keys-Gtkr.PDB");  
 $pdb->Decrypt($Pass) || die "Couldn't decrypt!";  
   
 print Dump $pdb;  foreach my $rec (@{ $pdb->{'records'} }) {
       next unless $rec->{'encrypted'};
   
           my $acct = $pdb->Decrypt($rec, $Pass) || die "Couldn't decrypt!";
           print Dump $rec, $acct;
   }

Legend:
Removed from v.1.2  
changed lines
  Added in v.1.3

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>