Hiding password in Java command line program
When entering input to a Java command line program, is it possible/easy to mask the input with asterisks?
|
This is usually not possible with pure Java, but achievable with some native code depending on platforms.
See Jline for an implementation: http://jline.sourceforge.net/#reading_password |
I found this on the Java website. I looks a bit OTT/messy for the simple program I'm writing, so I'll give it a miss this time.
|
All times are GMT -5. The time now is 04:22 AM. |