From 83e242f14c5ae59193211af39c06987af479fc0c Mon Sep 17 00:00:00 2001 From: Jesse Luehrs Date: Sun, 19 Dec 2010 11:19:55 -0600 Subject: add docs --- lib/KiokuDB/Serializer/JSON/Crypt.pm | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) (limited to 'lib/KiokuDB/Serializer/JSON/Crypt.pm') diff --git a/lib/KiokuDB/Serializer/JSON/Crypt.pm b/lib/KiokuDB/Serializer/JSON/Crypt.pm index 53569bc..8a87fa5 100644 --- a/lib/KiokuDB/Serializer/JSON/Crypt.pm +++ b/lib/KiokuDB/Serializer/JSON/Crypt.pm @@ -5,8 +5,29 @@ use namespace::autoclean; =head1 SYNOPSIS + use KiokuDB::Util; + use KiokuDB::Serializer::JSON::Crypt; + + my $dsn = '...'; + my $secret = '...'; + + my $backend = KiokuDB::Util::dsn_to_backend( + $dsn, + serializer => KiokuDB::Serializer::JSON::Crypt->new( + crypt_cipher => 'Rijndael', + crypt_mode => 'CFB', + crypt_key => $secret, + ), + ) + + my $d = KiokuDB->new(backend => $backend); + =head1 DESCRIPTION +This serializer class extends L to add encryption +support. See L for an explanation of the allowed +attributes. + =cut extends 'KiokuDB::Serializer::JSON'; -- cgit v1.2.3-54-g00ecf