|
libkeepass 0.2.0
KeePass key database importer/exporter library
|
Keepass2 database file representation. More...
#include <kdbx.hh>
Public Member Functions | |
| std::unique_ptr< Database > | Import (const std::string &path, const Key &key) |
| Imports a KDBX database from a file path. | |
| std::unique_ptr< Database > | Import (std::istream &src, const Key &key) |
| Imports a KDBX database from an input stream. | |
| void | Export (const std::string &path, const Database &db, const Key &key) |
| Exports a database to a KDBX file. | |
| void | Export (std::ostream &dst, const Database &db, const Key &key) |
| Exports a database to an output stream in KDBX format. | |
| void | set_write_kdbx4 (bool write_kdbx4) |
| void | set_use_cached_key (bool use_cached_key) |
| bool | use_cached_key () const |
| void | set_resource_limits (const detail::ResourceLimits &limits) |
Keepass2 database file representation.
Exports a database to a KDBX file.
| path | Path to the output file. |
| db | The database to export. |
| key | The key used to encrypt the database. |
Exports a database to an output stream in KDBX format.
| dst | The output stream to write the KDBX database to. |
| db | The database to export. |
| key | The key used to encrypt the database. |
Imports a KDBX database from a file path.
| path | Path to the KDBX database file on disk. |
| key | The key used to decrypt the database. |
Imports a KDBX database from an input stream.
| src | The input stream containing the KDBX database. |
| key | The key used to decrypt the database. |
| void keepass::KdbxFile::set_resource_limits | ( | const detail::ResourceLimits & | limits | ) |
Sets the resource budgets enforced while importing and parsing.
Selects whether a transformed key cached on the Database may be reused. Callers that explicitly supply a key (for example SaveAs/re-encryption) must disable this so that the supplied key actually replaces the cached one. Enabled by default, so keyless saves of freshly created or imported databases can reuse the cache.
Forces the exporter to produce a KDBX 4 format database.
|
inline |
Returns whether a cached transformed key may be reused.