]>
Dogcows Code - chaz/p5-File-KDBX/blob - lib/File/KDBX/Dumper/Raw.pm
1153fccdb8ff8a9ba6e374fd0d4deeb1d54eeb23
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 = '0.900'; # 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);
47 File::KDBX::Dumper::Raw - A no-op dumper that dumps content as-is
55 use File::KDBX::Dumper;
58 my $kdbx = File::KDBX->new;
59 $kdbx->raw("Secret file contents\n");
61 $kdbx->dump_file('file.kdbx', $key, inner_format => 'Raw');
63 File::KDBX::Dumper->dump_file('file.kdbx', $key,
65 inner_format => 'Raw',
70 A typical KDBX file is made up of an outer section (with headers) and an inner section (with the body). The
71 inner section is usually dumped using L<File::KDBX::Dumper::XML>, but you can use the
72 B<File::KDBX::Dumper::Raw> dumper to just write some arbitrary data as the body content. The result won't
73 necessarily be parseable by typical KeePass implementations, but it can be read back using
74 L<File::KDBX::Loader::Raw>. It's a way to encrypt any file with the same high level of security as a KDBX
79 Please report any bugs or feature requests on the bugtracker website
80 L<https://github.com/chazmcgarvey/File-KDBX/issues>
82 When submitting a bug or request, please include a test-file or a
83 patch to an existing test-file that illustrates the bug or desired
88 Charles McGarvey <ccm@cpan.org>
90 =head1 COPYRIGHT AND LICENSE
92 This software is copyright (c) 2022 by Charles McGarvey.
94 This is free software; you can redistribute it and/or modify it under
95 the same terms as the Perl 5 programming language system itself.
This page took 0.037705 seconds and 3 git commands to generate.