| version 1.2, 2006/01/31 23:03:39 |
version 1.9, 2007/01/30 04:59:55 |
|
|
| #!/usr/bin/perl
|
#!/usr/bin/perl |
| use strict;
|
# $RedRiver$ |
| use warnings;
|
use strict; |
| use diagnostics;
|
use warnings; |
|
|
|
| use Palm::PDB;
|
use Palm::Keyring; |
| use lib 'lib';
|
|
| use Palm::Keyring;
|
my $pdb = new Palm::Keyring('12345'); |
|
|
|
| my $pdb = new Palm::PDB;
|
my $rec = $pdb->append_Record(); |
|
|
|
| use YAML;
|
my $acct = { |
|
|
name => 'Test3', |
| #print Dumper $pdb
|
account => 'anothertestaccount', |
|
|
password => 'adifferentmypass', |
| #$pdb->Load("Keys-GtkrNEW.PDB");
|
notes => 'now that really roxorZ!', |
| #$pdb->Decrypt('12345');
|
}; |
| $pdb->Load("Keys-Gtkr.PDB");
|
|
| $pdb->Decrypt('Password');
|
$pdb->Encrypt($rec, $acct); |
|
|
|
| #--------------------------------------------------
|
$pdb->Write("Keys-Gtkr-example.PDB"); |
| # my $new_record = $pdb->append_Record();
|
|
| #
|
|
| # $new_record->{plaintext} = {
|
|
| # name => 'Test3',
|
|
| # account => 'anothertestaccount',
|
|
| # password => 'adifferentmypass',
|
|
| # description => 'now that really roxorZ!',
|
|
| # };
|
|
| #
|
|
| #$pdb->Encrypt('12345');
|
|
| #
|
|
| #$pdb->Write("Keys-GtkrNEW.PDB");
|
|
| #--------------------------------------------------
|
|
|
|
|
| print Dump $pdb;
|
|
|
|
|