Hide master password when using java program in a terminal and make the generated password copyable in the java GUI

This change allow the user to hide the master password when using mpw in a terminal