        Password input/output utility
        =============================
        Copyright (C) Eugene V. Muzychenko, Novosibirsk, Russia

        Version 1.0





        Purpose
        =======

This Win32 command-line utility is intended to obtain a password from a
console and send it to standard output. A primary usage is to request a
password from a console and return it to a command (batch) file, to be
used as a command-line argument for an utility that is not able to
request a password interactively.

I wrote this utility when I realized that "signtool" utility from
Microsoft always requires a private key password in a command line and
cannot request a password interactively. Keeping a password in a
command file is a very bad idea but Microsoft thinks it is normal (as
for some other strange things).





        Usage
        =====

Command line:

getpassword ["<prompt>"]

If there is no command line, short information is displayed.

A password is always read from a console (redirection is not used)
without echo and sent to standard output.

In a command/batch file, the utility can be used in the "for /f"
statement:

for /f %%P in ('getpassword "Enter a password: "') do set Password=%%P





        Exit codes
        ==========

After successful completion, zero exit code is returned. Non-zero exit
code means a command-line error or execution errors (cannot interact
with a console, for example).





        License conditions
        ==================

This utility can be used freely. It cannot be modified and/or sold.





        Feedback
        ========

Please send your feedback to eugene@muzychenko.net
