| version 1.4, 2006/04/18 20:39:45 |
version 1.8, 2006/12/06 18:45:42 |
|
|
| #!/usr/bin/perl
|
#!/usr/bin/perl |
| use strict;
|
use strict; |
| use warnings;
|
use warnings; |
| use diagnostics;
|
use diagnostics; |
|
|
|
| use lib 'lib';
|
use lib 'lib'; |
| use Palm::Keyring;
|
use Palm::Keyring; |
|
|
|
| my $pdb = new Palm::Keyring;
|
my $pdb = new Palm::Keyring; |
|
|
|
| use YAML;
|
use YAML; |
|
|
|
| #print Dumper $pdb
|
my $new_record = $pdb->append_Record(); |
|
|
|
| #$pdb->Load("Keys-GtkrNEW.PDB");
|
$new_record->{plaintext} = { |
| #$pdb->Decrypt('12345');
|
name => 'Test3', |
| $pdb->Load("Keys-Gtkr.PDB");
|
account => 'anothertestaccount', |
| #$pdb->Load("k:/working/Keys-Gtkr.PDB");
|
password => 'adifferentmypass', |
| $pdb->Decrypt('12345');
|
description => 'now that really roxorZ!', |
|
|
}; |
| #--------------------------------------------------
|
|
| # my $new_record = $pdb->append_Record();
|
$pdb->Encrypt('12345'); |
| #
|
|
| # $new_record->{plaintext} = {
|
$pdb->Write("Keys-GtkrNEW.PDB"); |
| # name => 'Test3',
|
|
| # account => 'anothertestaccount',
|
print Dump $pdb; |
| # password => 'adifferentmypass',
|
|
| # description => 'now that really roxorZ!',
|
|
| # };
|
|
| #
|
|
| #$pdb->Encrypt('12345');
|
|
| #
|
|
| #$pdb->Write("Keys-GtkrNEW.PDB");
|
|
| #--------------------------------------------------
|
|
|
|
|
| print Dump $pdb;
|
|
|
|
|