]>
Dogcows Code - chaz/p5-File-KDBX/blob - lib/File/KDBX/Loader/Raw.pm
1 package File
::KDBX
::Loader
::Raw
;
2 # ABSTRACT: A no-op loader that doesn't do any parsing
7 use File
::KDBX
::Util
qw(:class);
10 extends
'File::KDBX::Loader';
12 our $VERSION = '999.999'; # VERSION
18 $self->_read_body($fh);
25 $self->_read_inner_body($fh);
28 sub _read_inner_body
{
32 my $content = do { local $/; <$fh> };
33 $self->kdbx->raw($content);
41 use File::KDBX::Loader;
43 my $kdbx = File::KDBX::Loader->load_file('file.kdbx', $key, inner_format => 'Raw');
48 A typical KDBX file is made up of an outer section (with headers) and an inner section (with the body). The
49 inner section is usually loaded using L<File::KDBX::Loader::XML>, but you can use the
50 B<File::KDBX::Loader::Raw> loader to not parse the body at all and just get the raw body content. This can be
51 useful for debugging or creating KDBX files with arbitrary content (see L<File::KDBX::Dumper::Raw>).
This page took 0.038589 seconds and 4 git commands to generate.