]>
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);
10 extends
'File::KDBX::Dumper';
12 our $VERSION = '999.999'; # VERSION
18 $self->_write_body($fh);
21 sub _write_headers
{ '' }
27 $self->_write_inner_body($fh);
30 sub _write_inner_body
{
34 $fh->print($self->kdbx->raw);
42 use File::KDBX::Dumper;
45 my $kdbx = File::KDBX->new;
46 $kdbx->raw("Secret file contents\n");
48 $kdbx->dump_file('file.kdbx', $key, inner_format => 'Raw');
50 File::KDBX::Dumper->dump_file('file.kdbx', $key,
52 inner_format => 'Raw',
57 A typical KDBX file is made up of an outer section (with headers) and an inner section (with the body). The
58 inner section is usually dumped using L<File::KDBX::Dumper::XML>, but you can use the
59 B<File::KDBX::Dumper::Raw> dumper to just write some arbitrary data as the body content. The result won't
60 necessarily be parseable by typical KeePass implementations, but it can be read back using
61 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.039771 seconds and 4 git commands to generate.