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

File: [local] / palm / Palm-Keyring / examples / example1.pl (download)

Revision 1.9, Tue Jan 30 04:59:55 2007 UTC (17 years, 5 months ago) by andrew
Branch: MAIN
Changes since 1.8: +10 -16 lines

Switch to decrypting one record at a time when requested.  That leads to more tests so that's kewl :-)

#!/usr/bin/perl
# $RedRiver$
use strict;
use warnings;

use Palm::Keyring;

my $pdb = new Palm::Keyring('12345');

my $rec = $pdb->append_Record();

my $acct = {
	name      => 'Test3',
	account   => 'anothertestaccount',
	password  => 'adifferentmypass',
	notes     => 'now that really roxorZ!',
};

$pdb->Encrypt($rec, $acct);
 
$pdb->Write("Keys-Gtkr-example.PDB");