Function: auth-source-pass-get

auth-source-pass-get is an autoloaded and byte-compiled function defined in auth-source-pass.el.gz.

Signature

(auth-source-pass-get KEY ENTRY)

Documentation

Return the value associated to KEY in the password-store entry ENTRY.

ENTRY is the name of a password-store entry. The key used to retrieve the password is the symbol secret.

The convention used as the format for a password-store file is the following (see URL https://www.passwordstore.org/#organization):

secret key1: value1 key2: value2

Probably introduced at or before Emacs version 27.1.

Source Code

;; Defined in /usr/src/emacs/lisp/auth-source-pass.el.gz
;;;###autoload
(defun auth-source-pass-get (key entry)
  "Return the value associated to KEY in the password-store entry ENTRY.

ENTRY is the name of a password-store entry.
The key used to retrieve the password is the symbol `secret'.

The convention used as the format for a password-store file is
the following (see URL `https://www.passwordstore.org/#organization'):

secret
key1: value1
key2: value2"
  (let ((data (auth-source-pass-parse-entry entry)))
    (auth-source-pass--get-attr key data)))