JBoss Community

Getting output in jsp from PBEUtils

created by Mike schwery in JBoss Web Development - View the full discussion

In a jsp i'm calling PBEUtils to encrypt a password, but the class returns the encrypted password in the stderr.

For example in the jsp I have the following

String[] input = {"KJKdjkw1","50","nn32kF*vn3","fubar1234"};

PBEUtils.main(input);

The  output is 16:15:38,574 ERROR [STDERR] Encoded password: 2ELTO5EQXKjjCADxkwavrO

How do I grab it from the stderr?

Reply to this message by going to Community

Start a new discussion in JBoss Web Development at Community