I am writing an application in Perl. This application will take the ‘username’ and the ‘password’ as the input, and based on the authentication from the Windows Domain Controller will continue to process other things. This same Perl Script is also used on Unix and here the authentication is done from NIS.
The script runs in a DOS Box on Windows and in a Terminal on Unix (there is no GUI). My main concern is, when users are typing their passwords, how to suppress it from appearing on the console in the DOS Box. In Unix there is a command called “stty -echo” which will turn off the console echo. Is there a similar command on Windows? Or is there any way by which I could achieve the same through Perl.
Any pointer or hints will be appreciated.