Skip to content

stoically/keytar-rs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

keytar-rs

crates.io page docs.rs page build license: MIT

keytar bindings for Rust

Note: You might want to consider using the keyring crate instead, which is fully written in 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();

Linux Requirement

Currently this library uses libsecret. Depending on your distribution, you will need to install the appropriate package, e.g.:

  • Debian/Ubuntu: sudo apt-get install libsecret-1-dev
  • Red Hat-based: sudo yum install libsecret-devel
  • Arch Linux: sudo pacman -S libsecret

About

keytar bindings for Rust

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •