libkeepass 0.2.0
KeePass key database importer/exporter library
Loading...
Searching...
No Matches
keepass::KdbFile Class Referencefinal

Keepass database file representation. More...

#include <kdb.hh>

Static Public Member Functions

static std::unique_ptr< Database > Import (const std::string &path, const Key &key)
 Imports a KDB database from a file path.
 
static std::unique_ptr< Database > Import (std::istream &src, const Key &key)
 Imports a KDB database from an input stream.
 
static void Export (const std::string &path, const Database &db, const Key &key)
 Exports a database to a KDB file.
 
static void Export (std::ostream &dst, const Database &db, const Key &key)
 Exports a database to an output stream in KDB format.
 

Detailed Description

Keepass database file representation.

Member Function Documentation

◆ Export() [1/2]

static void keepass::KdbFile::Export ( const std::string &  path,
const Database &  db,
const Key &  key 
)
static

Exports a database to a KDB file.

Parameters
pathPath to the output file.
dbThe database to export.
keyThe key used to encrypt the database.

◆ Export() [2/2]

static void keepass::KdbFile::Export ( std::ostream &  dst,
const Database &  db,
const Key &  key 
)
static

Exports a database to an output stream in KDB format.

Parameters
dstThe output stream to write the KDB database to.
dbThe database to export.
keyThe key used to encrypt the database.

◆ Import() [1/2]

static std::unique_ptr< Database > keepass::KdbFile::Import ( const std::string &  path,
const Key &  key 
)
static

Imports a KDB database from a file path.

Parameters
pathPath to the KDB database file on disk.
keyThe key used to decrypt the database.
Returns
A unique pointer to the imported Database object.

◆ Import() [2/2]

static std::unique_ptr< Database > keepass::KdbFile::Import ( std::istream &  src,
const Key &  key 
)
static

Imports a KDB database from an input stream.

Parameters
srcThe input stream containing the KDB database.
keyThe key used to decrypt the database.
Returns
A unique pointer to the imported Database object.

The documentation for this class was generated from the following file: