]>
Dogcows Code - chaz/p5-File-KDBX/blob - lib/File/KDBX/Loader/Raw.pm
7eeaaee500b25aa41f8d3932238313fd76f753e9
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);
9 extends
'File::KDBX::Loader';
11 our $VERSION = '999.999'; # VERSION
17 $self->_read_body($fh);
24 $self->_read_inner_body($fh);
27 sub _read_inner_body
{
31 my $content = do { local $/; <$fh> };
32 $self->kdbx->raw($content);
40 use File::KDBX::Loader;
42 my $kdbx = File::KDBX::Loader->load_file('file.kdbx', $key, inner_format => 'Raw');
47 A typical KDBX file is made up of an outer section (with headers) and an inner section (with the body). The
48 inner section is usually loaded using L<File::KDBX::Loader::XML>, but you can use the
49 B<File::KDBX::Loader::Raw> loader to not parse the body at all and just get the raw body content. This can be
50 useful for debugging or creating KDBX files with arbitrary content (see L<File::KDBX::Dumper::Raw>).
This page took 0.04045 seconds and 3 git commands to generate.