Hide master password when using java program in a terminal