Link to home
Start Free TrialLog in
Avatar of kr_raj
kr_raj

asked on

Password Masking

How to achieve password masking in console application?
Avatar of Venci75
Venci75

What is "normal" application? What do you mean by "encode" password"?
ASKER CERTIFIED SOLUTION
Avatar of Ovi
Ovi

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of kr_raj

ASKER

Sorry for the inconvenience caused.
Actually my problem is how to achieve Command-Line
Input masking. For AWT/Swing application, password
masking is not an issue as package provides class and
method to mask the password.
So, would you please suggest me how to mask password
(similar to Unix approach to login screens, where password
is not echoed on the screen at all).

Avatar of kr_raj

ASKER

Thx a ton to Ovi for the help.
here you can find one possible approach:
http://java.sun.com/features/2002/09/pword_mask.html

unfortunately - it is not clean
My example is working in this sense.
... and is the same as the one in the link posted by Venci75
Avatar of Mick Barry
That functionality is currently not supported (without using some JNI) and there is an outstanding RFE for it.
http://developer.java.sun.com/developer/bugParade/bugs/4050435.html
The link posted by Venci75 contains a workaround, but it's not guaranteed to always work.
The bug posted does not refer to the solutions (the same) posted here.
> The bug posted does not refer to the solutions (the
> same) posted here.

It actually does?

And besides it's still useful information isn't it?
It explains that the functionality required is currently not supported.
out of the topic ... . The code in the comment posted here (the same as the one from Sun site) represents a workaround for this unsupported feature, as originally says it's author.
> ...contains a workaround, but it's not guaranteed to
> always work.

Exactly as I have already mentioned in my previous comment.

kr_raj:
This old question needs to be finalized -- accept an answer, split points, or get a refund.  For information on your options, please click here-> http:/help/closing.jsp#1 
EXPERTS:
Post your closing recommendations!  No comment means you don't care.
No comment has been added lately, so it's time to clean up this TA.
I will leave a recommendation in the Cleanup topic area that this question is:

- Points for Ovi

Please leave any comments here within the next seven days.

PLEASE DO NOT ACCEPT THIS COMMENT AS AN ANSWER!

Venabili
EE Cleanup Volunteer