Expand description
File backend implementation that can be backed by the Secret portal.
use oo7::{Secret, file::UnlockedKeyring};
let keyring = UnlockedKeyring::load("default.keyring", Secret::text("some_text")).await?;
keyring
.create_item("My Label", &[("account", "alice")], "My Password", true)
.await?;
let items = keyring.search_items(&[("account", "alice")]).await?;
assert_eq!(items[0].secret(), oo7::Secret::blob("My Password"));
keyring.delete(&[("account", "alice")]).await?;Modules§
- api
unstable - GNOME Keyring file format low level API.
Structs§
- Invalid
Item Error - All information that is available about an invalid (not decryptable)
Item - Locked
Item - A locked variant of
UnlockedItem - Locked
Keyring - A locked keyring that requires a secret to unlock.
- Unlocked
Item - An item stored in the file backend.
- Unlocked
Keyring - File backed keyring.
Enums§
- Error
- File backend specific errors.
- Item
- Keyring
- Weak
KeyError - Details about why an encryption key is consider too weak for writing
Type Aliases§
- Item
Definition - Definition for batch item creation: (label, attributes, secret, replace)