minceme has asked for the wisdom of the Perl Monks concerning the following question:
use strict ;
use BerkeleyDB ;
my $dbfile = 'encrypt.db'
unlink $dbfile;
my $env = new BerkeleyDB::Env
-SetFlags=> DB_ENCRYPT;
my $db = tie my %hash, 'BerkeleyDB::Hash',
-Filename => $dbfile',
-Env=> $env,
-Flags => DB_CREATE,
or die "Cannot open $filename: $!\n" ;
$hash{jallah} = "bah" ;
undef $db ;
untie %hash ;
By inspecting the 'encrypt.db', I can find the string 'jallah' I stored in the database. :(
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Problems using BerkeleyDB encryption
by diotalevi (Canon) on Mar 26, 2003 at 22:38 UTC | |
by minceme (Initiate) on Mar 26, 2003 at 23:02 UTC | |
by diotalevi (Canon) on Mar 26, 2003 at 23:24 UTC |