=================================================================== RCS file: /cvs/palm/Palm-Keyring/examples/example1.pl,v retrieving revision 1.6 retrieving revision 1.8 diff -u -r1.6 -r1.8 --- palm/Palm-Keyring/examples/example1.pl 2006/11/10 04:21:17 1.6 +++ palm/Palm-Keyring/examples/example1.pl 2006/12/06 18:45:42 1.8 @@ -10,27 +10,18 @@ use YAML; -#print Dumper $pdb +my $new_record = $pdb->append_Record(); -$pdb->Load("Keys-GtkrNEW.PDB"); -#$pdb->Load("Keys-Gtkr.PDB"); -#$pdb->Load("k:/working/Keys-Gtkr.PDB"); -$pdb->Decrypt('Password'); +$new_record->{plaintext} = { + name => 'Test3', + account => 'anothertestaccount', + password => 'adifferentmypass', + description => 'now that really roxorZ!', +}; -#-------------------------------------------------- -# 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"); -#-------------------------------------------------- +$pdb->Encrypt('12345'); + +$pdb->Write("Keys-GtkrNEW.PDB"); print Dump $pdb;