Struct kdbx4::CompositeKey [−][src]
pub struct CompositeKey { /* fields omitted */ }
Expand description
The key to the database.
May be constructed with a plain password string or from a password and a key file (read more).
Implementations
Creates CompositeKey
using master password and database key file. Both arguments are optional.
Example
use kdbx4::{Kdbx4,CompositeKey};
let key = CompositeKey::new(None::<String>, Some("~/.secret"))?;
let db = Kdbx4::open("~/passwords.kdbx", key);