Crate kbparse_lib
source ·Expand description
This crate provides a lightweight ability to parse Apple user keybags (version 5).
// Simplified example
use kbparse_lib::keybag::Keybagv5;
fn main() -> Result<(), Box<dyn std::error::Error>> {
let args: Vec<String> = std::env::args().collect();
let bytes = std::fs::read(&args[1])?;
let kb = Keybagv5::parse(&bytes)?;
println!("{:#?}", kb);
dbg!(&kb);
Ok(())
}