password-cache

Homepage: https://www.gnu.org/software/emacs

Author: Simon Josefsson

Summary

Read passwords, possibly using a password cache

Commentary

Greatly influenced by pgg.el written by Daiki Ueno, with timer
fixes for XEmacs by Katsumi Yamaoka.  In fact, this is mostly just
a rip-off.

(password-read "Password? " "test")
;; Minibuffer prompt for password.
 => "foo"

(password-cache-add "test" (read-passwd "Password? "))
;; Minibuffer prompt from read-passwd, which returns "foo".
 => nil

(password-read "Password? " "test")
;; No minibuffer prompt
 => "foo"

(password-read "Password? " "test")
;; No minibuffer prompt
 => "foo"

;; Wait `password-cache-expiry' seconds.

(password-read "Password? " "test")
;; Minibuffer prompt for password is back.
 => "foo"

Reverse dependencies