I wrote an open source program called editenv
that replaces my older editv32
/editv64
utilities:
https://github.com/Bill-Stewart/editenv
The --maskinput
(-m
) option[*] lets you hide (mask) the typed input and has a configurable character (default character is *
); e.g.:
editenv -m -p "Password: " PWD
The --prompt
(-p
) option lets you specify an input prompt. The above will display a Password:
prompt and wait for you to enter something. Typed characters will appear as *
. Pressing Ctrl+C will end the program with an exit code of 1223.
Download is here:
https://github.com/Bill-Stewart/editenv/releases
[*] Note that the --maskinput
(-m
) option is not secure -- the entered string is entered as plain-text in the environment. This feature is for convenience only.