]>
Dogcows Code - chaz/p5-File-KDBX/blob - Raw.pm
00205c85a7f6c89ead00768259dc42684d361464
1 package File
::KDBX
::Dumper
::Raw
;
2 # ABSTRACT: A no-op dumper that dumps content as-is
7 use parent
'File::KDBX::Dumper';
9 our $VERSION = '999.999'; # VERSION
15 $self->_write_body($fh);
18 sub _write_headers
{ '' }
24 $self->_write_inner_body($fh);
27 sub _write_inner_body
{
31 $fh->print($self->kdbx->raw);
39 use File::KDBX::Dumper;
42 my $kdbx = File::KDBX->new;
43 $kdbx->raw("Secret file contents\n");
45 $kdbx->dump_file('file.kdbx', $key, inner_format => 'Raw');
47 File::KDBX::Dumper->dump_file('file.kdbx', $key,
49 inner_format => 'Raw',
54 A typical KDBX file is made up of an outer section (with headers) and an inner section (with the body). The
55 inner section is usually dumped using L<File::KDBX::Dumper::XML>, but you can use the
56 B<File::KDBX::Dumper::Raw> dumper to just write some arbitrary data as the body content. The result won't
57 necessarily be parseable by typical KeePass implementations, but it can be read back using
58 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.037202 seconds and 3 git commands to generate.