/keytar

Emacs Lisp interface for https://www.npmjs.com/package/keytar.

Primary LanguageEmacs LispGNU General Public License v3.0GPL-3.0

Build Status CELPA License: GPL v3

keytar

Emacs Lisp interface for node-keytar using @emacs-grammarly/keytar-cli.

Installation

You will need @emacs-grammarly/keytar-cli before using this library.

npm install -g @emacs-grammarly/keytar-cli

or after you have installed keytar.el in your load-path. Do the following,

(require 'keytar)
(keytar-install)

Usage

List of supported API ported from node-keytar.

  • keytar-get-password
  • keytar-set-password
  • keytar-delete-password
  • keytar-find-credentials
  • keytar-find-password

P.S. Checkout the node-keytar#docs for details

Examples

A small example to use this library in Emacs Lisp.

(keytar-set-password "service1" "testuser" "hello")  ; t
(keytar-find-credentials "service1")                 ; [ { account: 'testuser', password: 'hello' } ]
(keytar-find-password "service1")                    ; hello

Contribution

If you would like to contribute to this project, you may either clone and make pull requests to this repository. Or you can clone the project and establish your own branch of this tool. Any methods are welcome!