Crypt-xDBM_File
view release on metacpan or search on metacpan
Revision history for Perl extension Crypt::xDBM_File.
0.01 Mon Jul 31 12:33:46 2000
- original version; created by h2xs 1.19
0.80 Tue Aug 01 01:28:14 2000
- works very well, test.pl requires a few packages :)
- tested with Crypt::DES
- tested with Crypt::IDEA
- tested with Crypt::Blowfish
- tested with GDBM_File
- tested with NDBM_File
- tested with SDBM_File
- some history missing
1.02 Thu Jan 03 08:42:20 2008
- fixed EXISTS bug, thanks to Cristoph Karich
xDBM_File.pm view on Meta::CPAN
tie %hash, 'Crypt::xDBM_File', crypt_method, key, 'GDBM_FILE', $filename, &GDBM_WRCREAT, 0640;
tie %hash, 'Crypt::xDBM_File', 'IDEA', "my_key", 'NDBM_FILE', $filename, O_RDWR|O_CREAT, 0640;
tie %hash, 'Crypt::xDBM_File', 'DES', "my_key", 'SDBM_FILE', $filename, O_RDWR|O_CREAT, 0640;
tie %hash, 'Crypt::xDBM_File', 'Crypt::Blowfish', "my key", 'GDBM_FILE', $filename, &GDBM_WRCREAT, 0640;
=head1 DESCRIPTION
Crypt::xDBM_File encrypts/decrypts the data in a gdbm,ndbm,sdbm (and maybe even berkeleyDB, but I didn't test that) file. It gets tied to a hash and you just access the hash like normal. The crypt function can be any of the CPAN modules that use en...
You can in a single dbm file mix encryption methods, just be prepared to handle the binary muck that you get from trying to decrypt with an algorithm different from the one a key was originally encrypted in (for example if you do a keys or values, yo...
***IMPORTANT***
Encryption keys (the key you pass in on the tie line) will be padded or truncated to fit the keysize(). Data (the key/values of the hash) is padded to fill complete blocks of blocksize(). The padding is stripped before being returned to the user so...
=head1 AUTHOR
Eric Estabrooks, eric@urbanrage.com
( run in 0.311 second using v1.01-cache-2.11-cpan-9a3d99fc6dc )