NAME

KeePass::Reader - Interface to KeePass V4 database files

SYNOPSIS

#!/usr/bin/perl

use strict;
use warnings;
use Data::Dumper;
use KeePass::Reader;

my $keepass = KeePass::Reader->new();
my $content = $keepass->load_db(file => './files/test1.kdbx', password => 'test');
my $error = $keepass->error();
if (defined($error)) {
  print "error: $error\n";
}
print Data::Dumper::Dumper($content);

exit(0);

DESCRIPTION

KeePass::Reader is a perl interface to read KeePass version 4.

It supports following capabilities: - Encryption Algorithm: AES, TwoFish, ChaCha20 - Key Derivation Function: Argon2 - Keys: Password, KeyFile (SHA-256 hash of the key file)

METHODS

new

Create new object:

my $keepass = KeePass::Reader->new();
load_db ([ OPTIONS ])

Read a kdbx filename. Returns hash structure on success (otherwise undef).

OPTIONS are passed in a hash like fashion, using key and value pairs. Possible options are:

file - Set the kdbx filename to read.

password - Set the password credential.

keyfile - Set the key filename (optional).

error ( )

Returns the last error message. returns undef if no error.

LICENSE

This library is licensed under the Apache License 2.0. Details of this license can be found within the 'LICENSE' text file

AUTHOR

Quentin Garnier <qgarnier@centreon.com>