]>
Dogcows Code - chaz/p5-File-KDBX/blob - lib/File/KDBX/Dumper/Raw.pm
1 package File
::KDBX
::Dumper
::Raw
;
2 # ABSTRACT: A no-op dumper that dumps content as-is
7 use File
::KDBX
::Util
qw(:class);
9 extends
'File::KDBX::Dumper';
11 our $VERSION = '999.999'; # VERSION
17 $self->_write_body($fh);
20 sub _write_headers
{ '' }
26 $self->_write_inner_body($fh);
29 sub _write_inner_body
{
33 $fh->print($self->kdbx->raw);
41 use File::KDBX::Dumper;
44 my $kdbx = File::KDBX->new;
45 $kdbx->raw("Secret file contents\n");
47 $kdbx->dump_file('file.kdbx', $key, inner_format => 'Raw');
49 File::KDBX::Dumper->dump_file('file.kdbx', $key,
51 inner_format => 'Raw',
56 A typical KDBX file is made up of an outer section (with headers) and an inner section (with the body). The
57 inner section is usually dumped using L<File::KDBX::Dumper::XML>, but you can use the
58 B<File::KDBX::Dumper::Raw> dumper to just write some arbitrary data as the body content. The result won't
59 necessarily be parseable by typical KeePass implementations, but it can be read back using
60 L<File::KDBX::Loader::Raw>. It's a way to encrypt any file with the same high level of security as a KDBX
This page took 0.032815 seconds and 4 git commands to generate.