Skip to main content

Crate keepassxc_client

Crate keepassxc_client 

Source
Expand description

keepassxc-client — KeePassXC browser native-messaging protocol client.

Usage sketch:

use keepassxc_client::{KxcClient, IdKeyPair, transport::unix::UnixTransport};

let t = UnixTransport::connect_auto().await?;
let mut kxc = KxcClient::new(t);
kxc.change_public_keys().await?;

let id_key = IdKeyPair::generate();          // persist secret_bytes() in keyring!
let assoc = kxc.associate(&id_key).await?;   // user approves popup once
let entries = kxc.get_logins("https://vault.example.com").await?;

Re-exports§

pub use client::Association;
pub use client::KxcClient;
pub use crypto::IdKeyPair;
pub use error::KxcError;
pub use error::Result;
pub use protocol::Group;
pub use protocol::LoginEntry;
pub use protocol::Signal;

Modules§

client
High-level KeePassXC client tying together transport + crypto + protocol.
crypto
crypto_box (X25519 + XSalsa20-Poly1305) session layer, matching the KeePassXC-Browser protocol (“NaCl box”).
error
protocol
Wire types for the KeePassXC-Browser protocol.
transport
Socket transport to KeePassXC’s browser integration server.