zsh-users
 help / color / mirror / code / Atom feed
* Commands with passwords as options
@ 2011-02-01 21:15 Julien Nicoulaud
  2011-02-01 21:28 ` Mikael Magnusson
                   ` (2 more replies)
  0 siblings, 3 replies; 9+ messages in thread
From: Julien Nicoulaud @ 2011-02-01 21:15 UTC (permalink / raw)
  To: zsh-users

[-- Attachment #1: Type: text/plain, Size: 600 bytes --]

Some commands take passwords as option values, which is not very secure... I
was wondering if there is some way to handle that, for example through a
custom completer. Ideally, I here is how it should behave:
 - When reaching an option which expected value is a password, prompt for it
and read it from stdin
 - Do not display it in the buffer (just replace it with "XXXX" for example)
 - When accepting the buffer, replace the displayed buffer with the real one
 - Save the displayed buffer in the history rather than the real one

Does anyone have an idea on how to achieve this ?

Regards,
Julien

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2011-02-14 20:16 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-02-01 21:15 Commands with passwords as options Julien Nicoulaud
2011-02-01 21:28 ` Mikael Magnusson
2011-02-01 21:59   ` Julien Nicoulaud
2011-02-01 22:40     ` Benjamin R. Haskell
2011-02-01 22:57       ` Mikael Magnusson
2011-02-02  4:34 ` Bart Schaefer
2011-02-02 21:27   ` Julien Nicoulaud
2011-02-03  2:49     ` Bart Schaefer
2011-02-14 20:16 ` PJ Weisberg

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).