Input Password

I have a script which connects to database. I want user to input user name and password but dont want the password characters to be displayed on screen. How can i accept input from user in encrypted form.

Can you please try out this one ?

Put the following stty -echo. This setting prevents the characters being echoed on to the screen. Put this command before you ask for the password from the user. After you get the password from the user use stty echo. This will again enable the echoing of the characters being typed to the screen.

Thanks Murthy... I worked fine... My problem is solved...Thanks once again :slight_smile: