All Projects → atom → Node Keytar

atom / Node Keytar

Licence: mit
Native Password Node Module

Labels

Projects that are alternatives of or similar to Node Keytar

Csv2keychain
Small tool for adding exported credentials from Chrome to macOS keychain
Stars: ✭ 295 (-72.69%)
Mutual labels:  keychain
Securepropertystorage
Helps you define secure storages for your properties using Swift property wrappers.
Stars: ✭ 379 (-64.91%)
Mutual labels:  keychain
Keychaincracker
macOS keychain cracking tool
Stars: ✭ 693 (-35.83%)
Mutual labels:  keychain
Gokey
A simple vaultless password manager in Go
Stars: ✭ 305 (-71.76%)
Mutual labels:  keychain
Simplekeychain
A Keychain helper for iOS to make it very simple to store/obtain values from iOS Keychain
Stars: ✭ 360 (-66.67%)
Mutual labels:  keychain
Prephirences
Prephirences is a Swift library that provides useful protocols and convenience methods to manage application preferences, configurations and app-state. UserDefaults
Stars: ✭ 548 (-49.26%)
Mutual labels:  keychain
Csvkeychain
Import/export between Apple Keychain.app and plain CSV file.
Stars: ✭ 281 (-73.98%)
Mutual labels:  keychain
Instagramkit
The unofficial Instagram iOS SDK
Stars: ✭ 955 (-11.57%)
Mutual labels:  keychain
Valet
Valet lets you securely store data in the iOS, tvOS, or macOS Keychain without knowing a thing about how the Keychain works. It’s easy. We promise.
Stars: ✭ 3,712 (+243.7%)
Mutual labels:  keychain
Lthpasscodeviewcontroller
iOS 7 style Passcode Lock
Stars: ✭ 629 (-41.76%)
Mutual labels:  keychain
Go Keychain
Golang keychain package for iOS and macOS
Stars: ✭ 323 (-70.09%)
Mutual labels:  keychain
Macosvpn
🔧 Create macOS VPNs programmatically (L2TP & Cisco)
Stars: ✭ 348 (-67.78%)
Mutual labels:  keychain
Ios
Most usable tools for iOS penetration testing
Stars: ✭ 563 (-47.87%)
Mutual labels:  keychain
Xyuuid
iOS14 UUID KeyChain DeviceInfo IDFA UDID
Stars: ✭ 301 (-72.13%)
Mutual labels:  keychain
Keychainaccess
Simple Swift wrapper for Keychain that works on iOS, watchOS, tvOS and macOS.
Stars: ✭ 6,611 (+512.13%)
Mutual labels:  keychain
Uickeychainstore
UICKeyChainStore is a simple wrapper for Keychain on iOS, watchOS, tvOS and macOS. Makes using Keychain APIs as easy as NSUserDefaults.
Stars: ✭ 3,029 (+180.46%)
Mutual labels:  keychain
Aws Vault
A vault for securely storing and accessing AWS credentials in development environments
Stars: ✭ 5,626 (+420.93%)
Mutual labels:  keychain
Keychain
A cross-platform wrapper for the OS credential storage
Stars: ✭ 43 (-96.02%)
Mutual labels:  keychain
Envchain
Environment variables meet macOS Keychain and gnome-keyring <3
Stars: ✭ 876 (-18.89%)
Mutual labels:  keychain
Ellipticcurvekeypair
Sign, verify, encrypt and decrypt using the Secure Enclave
Stars: ✭ 589 (-45.46%)
Mutual labels:  keychain

keytar - Node module to manage system keychain

Travis Build Status Windows Build Status Dependency Status

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.

Installing

npm install keytar

On Linux

Currently this library uses libsecret so you may need to install it before running npm install.

Depending on your distribution, you will need to run the following command:

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

Building

  • Clone the repository
  • Run npm install
  • Run npm test to run the tests

Supported versions

Each release of keytar includes prebuilt binaries for the versions of Node and Electron that are actively supported by these projects. Please refer to the release documentation for Node and Electron to see what is supported currently.

Bindings from other languages

Docs

const keytar = require('keytar')

Every function in keytar is asynchronous and returns a promise. The promise will be rejected with any error that occurs or will be resolved with the function's "yields" value.

getPassword(service, account)

Get the stored password for the service and account.

service - The string service name.

account - The string account name.

Yields the string password or null if an entry for the given service and account was not found.

setPassword(service, account, password)

Save the password for the service and account to the keychain. Adds a new entry if necessary, or updates an existing entry if one exists.

service - The string service name.

account - The string account name.

password - The string password.

Yields nothing.

deletePassword(service, account)

Delete the stored password for the service and account.

service - The string service name.

account - The string account name.

Yields true if a password was deleted, or false if an entry with the given service and account was not found.

findCredentials(service)

Find all accounts and password for the service in the keychain.

service - The string service name.

Yields an array of { account: 'foo', password: 'bar' }.

findPassword(service)

Find a password for the service in the keychain. This is ideal for scenarios where an account is not required.

service - The string service name.

Yields the string password, or null if an entry for the given service was not found.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].