fixed #1719
 - uses read-line for reading password, if no console is available
Emphasise on password visibility in console.
Merge PR #1720, fixes #1719.
Merge remote-tracking branch 'upstream/master'