1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
//! keepass: KeePass .kdbx database file parser for Rust
//!
//!
//! ```
//! extern crate keepass;
//!
//! use keepass::{Database, Node, Result, Error};
//! use std::fs::File;
//!
//! fn main() -> Result<()> {
//! // Open KeePass database
//! let path = std::path::Path::new("tests/resources/test_db_with_password.kdbx");
//! let db = Database::open(&mut File::open(path)?, Some("demopass"), None)?;
//!
//! // Iterate over all Groups and Nodes
//! for node in &db.root {
//! match node {
//! Node::Group(g) => {
//! println!("Saw group '{0}'", g.name);
//! },
//! Node::Entry(e) => {
//! let title = e.get_title().unwrap();
//! let user = e.get_username().unwrap();
//! let pass = e.get_password().unwrap();
//! println!("Entry '{0}': '{1}' : '{2}'", title, user, pass);
//! }
//! }
//! }
//!
//! Ok(())
//! }
//! ```
extern crate aes;
extern crate argon2;
extern crate base64;
extern crate block_modes;
extern crate byteorder;
extern crate chacha20;
extern crate flate2;
extern crate generic_array;
extern crate hex_literal;
extern crate hmac;
extern crate salsa20;
extern crate secstr;
extern crate sha2;
extern crate stream_cipher;
extern crate xml;
pub
pub use *;
pub use ;
// see https://gist.github.com/msmuenchen/9318327 for file format details