From 3a108277637fad89869d904eea963aeb8f45b20d Mon Sep 17 00:00:00 2001 From: Tino Calancha Date: Thu, 29 Aug 2019 05:18:06 +0200 Subject: Support extractions of secret fields other than password Allow users to retrieve any secret field stored in the files. Use auth-source-pass to retrieve the secret fields. Bump version to v2.1.0. * contrib/emacs/Cask: Replace dependency on `s' library with auth-source-pass dependency. * contrib/emacs/password-store.el (password-store-url-field): New option. (password-store-dir): Use `auth-source-pass-filename'. (password-store-read-field, password-store-get-field) (password-store-copy-field, password-store-parse-entry): New functions. (password-store-read-field): Use password-store-parse-entry. (password-store--save-field-in-kill-ring): New function extracted from `password-store-get'. (password-store-url): Use `password-store-get-field' and `password-store-url-field'. * contrib/emacs/README.md: Update documentation. * contrib/emacs/CHANGELOG.md: Announce changes. --- contrib/emacs/README.md | 20 ++++++++++++++------ 1 file changed, 14 insertions(+), 6 deletions(-) (limited to 'contrib/emacs/README.md') diff --git a/contrib/emacs/README.md b/contrib/emacs/README.md index f94b95a..d3679e9 100644 --- a/contrib/emacs/README.md +++ b/contrib/emacs/README.md @@ -15,16 +15,24 @@ website for instructions Interactive: M-x password-store-insert - Password entry: example + Password entry: foo-account Password: ........ Confirm password: ........ M-x password-store-copy - Password entry: example - Copied example to the kill ring. Will clear in 45 seconds. - Password cleared. + Password entry: foo-account + Copied password for foo-account to the kill ring. Will clear in 45 seconds. + Field password cleared. + + M-x password-store-copy-field + Password entry: foo-account + Field: username + Copied username for foo-account to the kill ring. Will clear in 45 seconds. + Field url cleared. + Lisp: - (password-store-insert "example" "password") - (password-store-get "example") ; Returns "password" + (password-store-insert "foo-account" "password") + (password-store-get "foo-account") ; Returns "password" + (password-store-get-field "foo-account" "url") ; Returns "url" -- cgit v1.2.3