KiokuDB::Serializer::Crypt - encrypt data stored in KiokuDB
version 0.02
use KiokuDB::Util; use KiokuDB::Serializer::Crypt; my $dsn = '...'; my $secret = '...'; my $backend = KiokuDB::Util::dsn_to_backend( $dsn, serializer => KiokuDB::Serializer::Crypt->new( serializer => 'json', crypt_cipher => 'Rijndael', crypt_mode => 'CFB', crypt_key => $secret, ), ) my $d = KiokuDB->new(backend => $backend);
This is a custom serializer for KiokuDB, which wraps an existing serializer, encrypting the data before it is stored, and decrypting the data as it is retrieved. It can use several different encryption schemes (it's based on Crypt::Util, so anything that that supports).
The encryption key to use for encrypting and decrypting. Corresponds to default_key in Crypt::Util.
default_key
The encryption cipher to use. Corresponds to default_cipher in Crypt::Util, and defaults to Rijndael. You must ensure the appropriate cipher backend is installed (by adding, for instance, Crypt::Rijndael to the dependency list for your application).
default_cipher
Rijndael
The encryption mode to use. Corresponds to default_mode in Crypt::Util, and defaults to CFB. You must ensure the appropriate mode backend is installed (by adding, for instance, Crypt::CFB to the dependency list for your application).
default_mode
CFB
The Crypt::Util object which will be used for the encryption. Typically, this will be automatically created based on the other attribute values, but an already-built object can be passed in here for more complicated usages.
The underlying serializer to use. KiokuDB will use this serializer to get a string representation of the object which will then be encrypted. Defaults to 'storable'.
No known bugs.
Please report any bugs through RT: email bug-kiokudb-serializer-crypt at rt.cpan.org, or browse to http://rt.cpan.org/NoAuth/ReportBug.html?Queue=KiokuDB-Serializer-Crypt.
bug-kiokudb-serializer-crypt at rt.cpan.org
KiokuDB
Crypt::Util
You can find this documentation for this module with the perldoc command.
perldoc KiokuDB::Serializer::Crypt
You can also look for information at:
AnnoCPAN: Annotated CPAN documentation
http://annocpan.org/dist/KiokuDB-Serializer-Crypt
CPAN Ratings
http://cpanratings.perl.org/d/KiokuDB-Serializer-Crypt
RT: CPAN's request tracker
http://rt.cpan.org/NoAuth/Bugs.html?Dist=KiokuDB-Serializer-Crypt
Search CPAN
http://search.cpan.org/dist/KiokuDB-Serializer-Crypt
Jesse Luehrs <doy at tozt dot net>
This software is copyright (c) 2011 by Jesse Luehrs.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
To install KiokuDB::Serializer::Crypt, copy and paste the appropriate command in to your terminal.
cpanm
cpanm KiokuDB::Serializer::Crypt
CPAN shell
perl -MCPAN -e shell install KiokuDB::Serializer::Crypt
For more information on module installation, please visit the detailed CPAN module installation guide.