Crates.io | keytar |
lib.rs | keytar |
version | 0.1.6 |
source | src |
created_at | 2020-05-31 10:41:31.114395 |
updated_at | 2021-09-04 14:54:15.168803 |
description | keytar bindings to safely interact with operating system keychains |
homepage | |
repository | https://github.com/stoically/keytar-rs |
max_upload_size | |
id | 248088 |
size | 6,947 |
keytar bindings for Rust
A native Node module to get, add, replace, and delete passwords in system's keychain. On macOS the passwords are managed by the Keychain, on Linux they are managed by the Secret Service API/libsecret, and on Windows they are managed by Credential Vault.
let service = "service";
let account = "account";
let password = "password";
keytar::set_password(service, account, password).unwrap();
Currently this library uses libsecret
. Depending on your distribution,
you will need to install the appropriate package, e.g.:
sudo apt-get install libsecret-1-dev
sudo yum install libsecret-devel
sudo pacman -S libsecret