keepass-rs
Rust KeePass database file parser for KDB, KDBX3 and KDBX4, with experimental support for KDBX4 writing.
Usage
Open a database
use ;
use File;
Save a KDBX4 database (EXPERIMENTAL)
IMPORTANT: The inner XML data structure will be re-written from scratch from the internal object representation of this crate, so any field that is not parsed by the library will be lost in the written output file! Please make sure to back up your database before trying this feature.
You can enable the experimental support for saving KDBX4 databases using the save_kdbx4 feature.
use ;
use File;
Use developer tools
This crate contains several command line tools that can be enabled with the utilities feature flag.
See the [[bin]] sections in Cargo.toml for a complete list.
An example command line for running the kp-dump-xml command would be:
Installation
Add the following to the dependencies section of your Cargo.toml:
[dependencies]
keepass = "*" # TODO replace with current version
Performance Notes
Please set the RUSTFLAGS environment variable when compiling to enable CPU-specific optimizations (this greatly affects the speed of the AES key derivation):
For best results, also compile in Release mode.
Alternatively, you can add a .cargo/config.toml like in this project to ensure that rustflags are always set.
For AArch64 / ARMv8:
Performance optimizations are available for ARMv8 since Rust 1.61 via the aes_armv8 configuration option. To enable the optimizations, add
the following option to your .cargo/config.toml file:
[target.'cfg(target_arch = "aarch64")']
rustflags = ["--cfg", "aes_armv8"]
License
MIT