Finally you can easily accept password from console in Java, without echoing them. 마지막으로 비밀 번호를 수락하실 수있습니다 콘솔에 쉽게 자바, 그들이 울리지 않고있습니다.

This long unmet need has been addressed in 이 긴 미해결 필요가에서 해결되었습니다 JDK 1.6 1.6 jdk codeline. codeline합니다.

A new class - 새 클래스 - java.io.Console java.io.console has been defined to handle console I/O. 이 정의되지 콘솔을 처리할 / 오

To accept password from console in 콘솔에 비밀 번호를 수락 JDK 6.0 (aka JDK 1.6) jdk 6.0 (일명 jdk 1.6) use either: 사용 :
public char[] readPassword() 공용 문자 [] readpassword ()
or 또는
public char[] readPassword(String fmt, Object… args) 공용 문자 [] readpassword (문자열 fmt, 개체… args)

 Sample code:   Console cons;   char[] passwd;   if ((cons = System.console()) != null &&        (passwd = cons.readPassword(”[%s]“, “Password:”)) != null) {        // Use the passwd for authentication etc.        ….; // Your code        // After you are done zero the character array in memory for reducing security risk java.util.Arrays.fill(passwd, ‘ ‘); } 샘플 코드 : 콘솔 단점; 문자 [] 비밀 번호; 경우 ((단점 = system.console ())! = 널 & & (비밀 번호 = cons.readpassword ( "[%의]", "비밀 번호 :"))! = 널) (/ / 인증을위한 비밀 번호를 사용하여 등등….; / / 당신의 코드 / / 제로의 문자 배열이 완료 후에는 메모리에서 보안 위험을 줄이기위한 java.util.arrays.fill (비밀 번호, '');) 

So could I entice you yet to 그래서 유도를 아직 수 있을까요 download JDK 1.6 jdk 1.6을 다운로드 ?