3 unstable releases

0.5.1 Nov 10, 2021
0.4.2 Feb 4, 2020
0.4.1 Dec 21, 2018

#1305 in Database interfaces

Download history 14/week @ 2023-11-01 141/week @ 2023-11-08 16/week @ 2023-11-15 27/week @ 2023-11-22 24/week @ 2023-11-29 36/week @ 2023-12-06 21/week @ 2023-12-13 21/week @ 2023-12-20 100/week @ 2023-12-27 19/week @ 2024-01-03 29/week @ 2024-01-10 19/week @ 2024-01-17 15/week @ 2024-01-24 17/week @ 2024-01-31 18/week @ 2024-02-07 36/week @ 2024-02-14

89 downloads per month
Used in kp

MIT OR Unlicense

52KB
1K SLoC

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

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


lib.rs:

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

Dependencies

~2.5MB
~44K SLoC