DOKK / manpages / debian 12 / libfile-kdbx-perl / File::KDBX::Dumper::Raw.3pm.en
File::KDBX::Dumper::Raw(3pm) User Contributed Perl Documentation File::KDBX::Dumper::Raw(3pm)

File::KDBX::Dumper::Raw - A no-op dumper that dumps content as-is

version 0.906

    use File::KDBX::Dumper;
    use File::KDBX;
    my $kdbx = File::KDBX->new;
    $kdbx->raw("Secret file contents\n");
    $kdbx->dump_file('file.kdbx', $key, inner_format => 'Raw');
    # OR
    File::KDBX::Dumper->dump_file('file.kdbx', $key,
        kdbx => $kdbx,
        inner_format => 'Raw',
    );

A typical KDBX file is made up of an outer section (with headers) and an inner section (with the body). The inner section is usually dumped using File::KDBX::Dumper::XML, but you can use the File::KDBX::Dumper::Raw dumper to just write some arbitrary data as the body content. The result won't necessarily be parseable by typical KeePass implementations, but it can be read back using File::KDBX::Loader::Raw. It's a way to encrypt any file with the same high level of security as a KDBX database.

Please report any bugs or feature requests on the bugtracker website <https://github.com/chazmcgarvey/File-KDBX/issues>

When submitting a bug or request, please include a test-file or a patch to an existing test-file that illustrates the bug or desired feature.

Charles McGarvey <ccm@cpan.org>

This software is copyright (c) 2022 by Charles McGarvey.

This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.

2022-11-20 perl v5.36.0