Question

I'm writing a small applet with a JPasswordField, and I'd like to know if it's possible to protect the content of my JPasswordField, in case where the user's PC is hacked by a keylogger ...

I know that Java cannot do kernel level operations, so impossible to encrypt user's keystrocks. Is there eventually other alternative solutions please ?

Thanks a lot.

Was it helpful?

Solution

I don't believe so as key loggers work via OS hooks, something your applet won't be able to get near to. Shoot, even a desktop Java application would have a tough time doing something like this and would require native code if it were possible at all.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top