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
//! Parse and decrypt macOS Keychain files (`login.keychain-db`).
//!
//! This crate is a Rust port of the Go library at
//! <https://github.com/moond4rk/keychainbreaker>.
//!
//! ## Quick start
//!
//! ```no_run
//! use keychainbreaker::{Credential, Keychain};
//!
//! # fn main() -> keychainbreaker::Result<()> {
//! let mut kc = Keychain::open_file("/path/to/login.keychain-db")?;
//! kc.unlock(Credential::password("hunter2"))?;
//! for entry in kc.generic_passwords()? {
//! if let Some(pw) = &entry.password {
//! println!(
//! "{}@{}: {}",
//! entry.account,
//! entry.service,
//! String::from_utf8_lossy(pw)
//! );
//! }
//! }
//! # Ok(())
//! # }
//! ```
//!
//! [`Keychain::password_hash`] can be called without unlock to export a
//! hashcat-mode-23100 / John-the-Ripper hash for offline cracking.
pub use crate;
pub use crateKeychain;
pub use crate;
pub use crateKeychainBuilder;
pub use crate;
pub use crateCredential;