in java, how to hide password with java.util.Scanner
?
CAUTION: I need not use java.io.Console
solution
Scanner input = new Scanner(System.in);
System.out.println("What is your password?");
password = input.nextLine();
is it possible to overide Scanner (org.junit.contrib.java.lang.system.StandardOutputStreamLog
)?
is it possible use a other mask system (by an other thread (add *
by overide)?