kdbx4 0.4.1

KeePass KDBX4 file reader
Documentation

KDBX4 crates.io docs.rs

This is an implementation of KeePass database file reader in Rust. This crate aims to work with KDBX version 4 format.

Usage example

// Pre 2018 edition
// extern crate kdbx4;

use kdbx4::{Kdbx4,CompositeKey};

let key = CompositeKey::new(Some("P@ssW0rd"), Some("~/.secret")).unwrap();
let db = Kdbx4::open("~/passwords.kdbx", key).unwrap();

match db.find("example.com").as_slice() {
    [entry] => println!("{}", entry),
    _ => panic!("Expecting single entry with provided title"),
}

Similar projects

At the time of writing, these were not supporting version 4 databases.

License

MIT/Unlicensed