Rust-kpdb
A Rust library for reading and writing KeePass 2 and KeePassX databases.
Usage
To use rust-kpdb
, add the following to your Cargo.toml:
[]
= "0.1.0"
And the following to your crate root:
extern crate kpdb;
Examples
Create a new database:
use ;
let key = from_password;
let db = new;
Open the KeePass database passwords.kdbx using the password "password" and print it:
use ;
use File;
Open the KeePass database passwords.kdbx using both the password "password" and the key file passwords.key and print it:
use ;
use File;
Save a new KeePass database to new.kdbx:
use ;
use File;
Not Implemented
The following features are currently not implemented:
- KeePass 1 databases.
License
Rust-kpdb is dual licensed under the MIT and Apache 2.0 licenses, the same licenses as the Rust compiler.
Contributions
Contributions are welcome. By submitting a pull request you are agreeing to make you work available under the license terms of the Rust-kpdb project.