From 754bbf7a25a8dda49b5d08ef0d0443bbf5af0e36 Mon Sep 17 00:00:00 2001 From: Craig Jennings Date: Sun, 7 Apr 2024 13:41:34 -0500 Subject: new repository --- devdocs/elisp/reading-a-password.html | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 devdocs/elisp/reading-a-password.html (limited to 'devdocs/elisp/reading-a-password.html') diff --git a/devdocs/elisp/reading-a-password.html b/devdocs/elisp/reading-a-password.html new file mode 100644 index 00000000..6ed773fb --- /dev/null +++ b/devdocs/elisp/reading-a-password.html @@ -0,0 +1,10 @@ +

Reading a Password

To read a password to pass to another program, you can use the function read-passwd.

Function: read-passwd prompt &optional confirm default +
+

This function reads a password, prompting with prompt. It does not echo the password as the user types it; instead, it echoes ‘*’ for each character in the password. If you want to apply another character to hide the password, let-bind the variable read-hide-char with that character.

The optional argument confirm, if non-nil, says to read the password twice and insist it must be the same both times. If it isn’t the same, the user has to type it over and over until the last two times match.

The optional argument default specifies the default password to return if the user enters empty input. If default is nil, then read-passwd returns the null string in that case.

+
+
+

+ Copyright © 1990-1996, 1998-2022 Free Software Foundation, Inc.
Licensed under the GNU GPL license.
+ https://www.gnu.org/software/emacs/manual/html_node/elisp/Reading-a-Password.html +

+
-- cgit v1.2.3