This example shows accepting masked password from command line.
Please enter your password: Your password is: bethecoder