keyring-search 0.2.0

Cross-platform library for searching the platform specific credential store, made possible by keyring-rs
Documentation

keyring-search


Keyring-rs

build dependencies crates.io docs.rs

Usage

To use this library in your project add the following to your Cargo.toml file:

[dependencies]

keyring = "2"

use keyring::{Entry, Result};

fn main() -> Result<()> {
    let entry = Entry::new("my_service", "my_name")?;
    entry.set_password("topS3cr3tP4$$w0rd")?;
    let password = entry.get_password()?;
    println!("My password is '{}'", password);
    entry.delete_password()?;
    Ok(())
}

Errors

Examples

Client Testing

Extensibility

Platforms

For example, you might use

keyring = { version = "2", default_features = false, features = ["linux-secret-service"] }

License

Licensed under either of

at your option.