Turn off echo for --input and deal with empty passwords.